/* InkLayer website: paper on a desk, ink on paper.
   Colors are InkLayer's own (desk, paper, the deep green Add button, the mint
   selection, highlighters and the three inks of the screenshots). */

:root {
  color-scheme: light dark;
  --desk: #f1f3ee;
  --desk-grid: #d9ded5;
  --paper: #ffffff;
  --paper-edge: #e3e8e1;
  --toolbar: #f5fbf6;
  --ink: #20251f;
  --muted: #555b57;
  --faint: #7b837e;
  --brand: #196b52;
  --brand-ink: #ffffff;
  --mint: #a5f2d3;
  --mint-soft: #d2efe3;
  --highlight: #fcebae;
  --red-ink: #d64545;
  --green-ink: #2f7558;
  --navy-ink: #1f3a5f;
  --shadow: 0 1px 2px rgb(32 37 31 / 6%), 0 12px 32px rgb(32 37 31 / 8%);
  --shadow-lg: 0 2px 4px rgb(32 37 31 / 6%), 0 30px 60px rgb(32 37 31 / 14%);
  --radius: 18px;
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Roboto, "Helvetica Neue", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei",
    sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --desk: #131715;
    --desk-grid: #232a26;
    --paper: #1e2220;
    --paper-edge: #2e3532;
    --toolbar: #1a1e1c;
    --ink: #e2e6e0;
    --muted: #a6aea9;
    --faint: #7f8883;
    --brand: #5fc39a;
    --brand-ink: #0d1f18;
    --mint: #2b5c4a;
    --mint-soft: #213a31;
    --highlight: #5c4f1e;
    --red-ink: #ef7a72;
    --green-ink: #69c49b;
    --navy-ink: #8fb2e0;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 30%);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 30%), 0 30px 60px rgb(0 0 0 / 45%);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 20;
  background: var(--paper);
  padding: 8px 14px;
  border-radius: 10px;
}

/* --- Header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--toolbar) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--paper-edge) 70%, transparent);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 15%);
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
}

.nav a {
  color: var(--muted);
  white-space: nowrap;
}

.nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

.header-cta:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

@media (max-width: 860px) {
  .nav a:not(.lang) {
    display: none;
  }
}

@media (max-width: 420px) {
  .site-header .wrap {
    gap: 14px;
  }

  .header-cta {
    padding: 0 13px;
  }
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
  /* The canvas desk's dot grid. */
  background-image: radial-gradient(var(--desk-grid) 1.2px, transparent 1.4px);
  background-size: 24px 24px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(transparent, var(--desk));
  pointer-events: none;
}

.hero-copy {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--green-ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 800;
}

:lang(zh) h1,
:lang(zh) h2 {
  letter-spacing: 0;
  line-height: 1.2;
}

.lede {
  max-width: 640px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.55;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 22px;
  margin-top: 34px;
}

.store-badge {
  display: inline-block;
  line-height: 0;
}

.store-badge img {
  height: 54px;
  width: auto;
}

.cta-note {
  color: var(--faint);
  font-size: 15px;
}

/* A word circled or highlighted in ink. */
.inked {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.inked svg {
  position: absolute;
  max-width: none;
  pointer-events: none;
  overflow: visible;
}

.inked {
  padding: 0 0.12em;
  margin-right: 0.08em;
}

.inked .circle {
  left: -4%;
  top: -20%;
  width: 108%;
  height: 142%;
}

.inked .underline {
  left: -2%;
  bottom: -0.18em;
  width: 104%;
  height: 0.4em;
}

.ink-stroke {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.marker {
  background: linear-gradient(transparent 52%, var(--highlight) 52%, var(--highlight) 92%, transparent 92%);
  border-radius: 3px;
  padding: 0 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.marker.mint {
  background: linear-gradient(transparent 52%, var(--mint-soft) 52%, var(--mint-soft) 92%, transparent 92%);
}

/* Devices: a Mac window and an iPhone, drawn in CSS around the screenshots. */
.stage {
  position: relative;
  z-index: 1;
  margin: 56px auto 0;
  max-width: 1040px;
}

.window {
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--paper-edge);
  overflow: hidden;
}

.window .bar {
  display: flex;
  gap: 8px;
  padding: 11px 14px;
  background: var(--toolbar);
  border-bottom: 1px solid var(--paper-edge);
}

.window .bar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}

.window .bar i:nth-child(2) {
  background: #febc2e;
}

.window .bar i:nth-child(3) {
  background: #28c840;
}

.window img,
.tablet img,
.phone img {
  width: 100%;
  height: auto;
}

.phone {
  position: absolute;
  right: -2%;
  bottom: -9%;
  width: 21%;
  padding: 7px;
  border-radius: 34px;
  background: #1b1d1c;
  box-shadow: var(--shadow-lg);
}

.phone img {
  border-radius: 27px;
}

.tablet {
  padding: 12px;
  border-radius: 28px;
  background: #1b1d1c;
  box-shadow: var(--shadow-lg);
}

.tablet img {
  border-radius: 16px;
}

.stage .arrow {
  position: absolute;
  left: -7%;
  top: 18%;
  width: 13%;
}

@media (max-width: 760px) {
  .phone {
    width: 30%;
    right: -3%;
  }

  .stage .arrow {
    display: none;
  }
}

/* --- Promises strip ----------------------------------------------------- */

.promises {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 100px auto 0;
  padding: 0;
  list-style: none;
}

.promises li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 16px;
}

.promises svg {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--green-ink);
}

@media (max-width: 900px) {
  .promises {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Feature rows ------------------------------------------------------- */

section {
  scroll-margin-top: 80px;
}

.feature {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding: 110px 0 0;
}

.feature.flip {
  grid-template-columns: 7fr 5fr;
}

.feature.flip .feature-copy {
  order: 2;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--green-ink);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}

.feature h2,
.section-head h2 {
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 800;
}

.feature p {
  color: var(--muted);
  font-size: 18px;
  margin: 20px 0 0;
}

.checks {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 34px;
  margin: 12px 0;
  font-size: 17px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  width: 22px;
  height: 22px;
  background: var(--green-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 13.5c2 1.2 3.5 3 4.6 5.6C10.5 12 14.6 6.8 21 3.5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 13.5c2 1.2 3.5 3 4.6 5.6C10.5 12 14.6 6.8 21 3.5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.media {
  position: relative;
}

@media (max-width: 880px) {
  .feature,
  .feature.flip {
    grid-template-columns: 1fr;
    padding-top: 80px;
  }

  .feature.flip .feature-copy {
    order: 0;
  }
}

/* The layers illustration: three sheets, drawn in the inks. */
.layers-art {
  position: relative;
  aspect-ratio: 7 / 5;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  border: 1px solid var(--paper-edge);
  background-image: radial-gradient(var(--desk-grid) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
}

.layers-art svg {
  position: absolute;
  inset: 6% 8%;
  width: 84%;
  height: 88%;
}

.layer-label {
  font: 600 15px var(--font);
  fill: var(--muted);
}

/* --- Values (Obsidian-style cards) --------------------------------------- */

.section-head {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 130px;
  text-align: center;
}

.section-head p {
  color: var(--muted);
  font-size: 19px;
  margin: 18px 0 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  border: 1px solid var(--paper-edge);
}

.card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 18px 0 10px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.card .glyph {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--mint-soft);
  color: var(--green-ink);
}

.card .glyph svg {
  width: 26px;
  height: 26px;
}

.sync-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--paper-edge);
  background: var(--toolbar);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.chip.soon::after {
  content: "1.1";
  padding: 0 6px;
  border-radius: 6px;
  background: var(--highlight);
  color: var(--ink);
  font-size: 11px;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* --- Small feature grid ------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.tile {
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--paper-edge);
}

.tile h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tile h3 svg {
  width: 22px;
  height: 22px;
  color: var(--brand);
}

.tile p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15.5px;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* --- Coming in 1.1 ------------------------------------------------------ */

.soon-panel {
  position: relative;
  margin-top: 130px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
  border: 1px solid var(--paper-edge);
  overflow: hidden;
}

.soon-panel::before {
  /* A page of lined paper. */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(transparent 0 35px, var(--mint-soft) 35px 36px);
  opacity: 0.6;
  pointer-events: none;
}

.soon-panel > * {
  position: relative;
}

.soon-panel h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
}

.badge-11 {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--highlight);
  font-weight: 700;
  font-size: 14px;
}

.soon-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 40px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.soon-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  border-bottom: 1px dashed var(--paper-edge);
}

.soon-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 14px;
  height: 14px;
  border: 2.5px solid var(--red-ink);
  border-radius: 50% 45% 55% 48%;
  transform: rotate(-12deg);
}

.soon-list strong {
  display: block;
}

.soon-list span {
  color: var(--muted);
  font-size: 15.5px;
}

@media (max-width: 760px) {
  .soon-list {
    grid-template-columns: 1fr;
  }
}

/* --- Pricing ------------------------------------------------------------ */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: 18px;
  margin-top: 48px;
}

.plan {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  box-shadow: var(--shadow);
}

.plan.featured {
  border: 2px solid var(--brand);
}

.plan h3 {
  font-size: 24px;
  font-weight: 800;
}

.plan .price {
  margin: 10px 0 0;
  color: var(--green-ink);
  font-weight: 700;
}

.plan ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.plan li {
  position: relative;
  padding-left: 28px;
  margin: 10px 0;
  color: var(--muted);
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  background: var(--green-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 13.5c2 1.2 3.5 3 4.6 5.6C10.5 12 14.6 6.8 21 3.5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 13.5c2 1.2 3.5 3 4.6 5.6C10.5 12 14.6 6.8 21 3.5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.plans-note {
  max-width: 640px;
  margin: 22px auto 0;
  text-align: center;
  color: var(--faint);
  font-size: 15px;
}

@media (max-width: 760px) {
  .plans {
    grid-template-columns: 1fr;
  }
}

/* --- Closing call ------------------------------------------------------- */

.closing {
  margin-top: 130px;
  padding: 80px 24px;
  border-radius: 32px;
  background: var(--brand);
  color: var(--brand-ink);
  text-align: center;
  overflow: hidden;
  position: relative;
}

.closing h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
}

.closing p {
  margin: 16px auto 0;
  max-width: 560px;
  opacity: 0.85;
  font-size: 19px;
}

.closing .cta-row {
  margin-top: 30px;
}

.closing .scribble {
  position: absolute;
  opacity: 0.18;
  width: 260px;
  pointer-events: none;
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  margin-top: 90px;
  padding: 40px 0 56px;
  border-top: 1px solid var(--paper-edge);
  color: var(--faint);
  font-size: 15px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
}

.site-footer a {
  color: var(--muted);
}

/* --- Legal pages -------------------------------------------------------- */

.doc {
  max-width: 820px;
  margin: 48px auto 0;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 24px;
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  box-shadow: var(--shadow);
}

.doc h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  margin-bottom: 8px;
}

.doc h2 {
  font-size: 22px;
  margin: 36px 0 10px;
  letter-spacing: -0.01em;
}

.doc p,
.doc li {
  color: var(--muted);
}

.doc .language-links {
  margin: 10px 0 18px;
}

.doc .notice {
  border-left: 4px solid var(--green-ink);
  padding: 8px 14px;
  margin: 24px 0;
  background: var(--mint-soft);
  border-radius: 0 10px 10px 0;
}

/* --- Motion ------------------------------------------------------------- */

/* Ink writes itself in once; the copy is all there without it. */
.js .draw {
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: var(--len, 1200);
  animation: draw 1.1s cubic-bezier(0.6, 0, 0.3, 1) 0.35s forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .draw {
    animation: none;
    stroke-dashoffset: 0;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
