/* TabHabit landing — after the logo: ink outlines, coral / olive / cobalt / teal
   tabs, white and soft grey, outlined "sticker" cards. Calm like the panel. */

:root {
  --bg: #ffffff;
  --band: #f6f6f4;
  --card: #ffffff;
  --ink: #1a1a1a;
  --soft: #6b6a66;
  --line: #e6e5e2;
  --outline: #1a1a1a;
  --coral: #f2a39b;
  --olive: #cbbe84;
  --cobalt: #3a4fd9;
  --teal: #2f8f7b;
  --accent: #1a1a1a;
  --accent-hover: #000000;
  --accent-ink: #ffffff;
  --link: #3a4fd9;
  --old: #d9730d;
  --wait-bg: #e7f3f8;
  --wait-ink: #337ea9;
  --sk: #f1f1ef;
  --strip: #e9e9e7;
  --mark: #fde293;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.05);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Helvetica, Arial, sans-serif;
  --display: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Helvetica, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --band: #1b1b1b;
    --card: #202020;
    --ink: #ededeb;
    --soft: #a3a29e;
    --line: #2f2f2f;
    --outline: #ededeb;
    --accent: #ededeb;
    --accent-hover: #ffffff;
    --accent-ink: #141414;
    --link: #8b9bff;
    --old: #ffa344;
    --wait-bg: #243b4a;
    --wait-ink: #79b8f3;
    --sk: #2a2a2a;
    --strip: #262626;
    --mark: #7a6420;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
a:hover { color: var(--ink); }
code { font-family: var(--mono); font-size: 0.88em; background: var(--band); padding: 1px 5px; border-radius: 5px; }
kbd { font-family: var(--mono); font-size: 0.78em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 6px; background: var(--card); color: var(--soft); }
.dim, .soft { color: var(--soft); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { font-family: var(--display); margin: 0; }
h1 { font-size: clamp(42px, 7.4vw, 76px); line-height: 1.02; letter-spacing: -0.042em; font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.08; letter-spacing: -0.032em; font-weight: 650; }
h3 { font-size: 17px; letter-spacing: -0.01em; font-weight: 600; }
.lede { font-size: clamp(18px, 2vw, 20px); line-height: 1.5; color: var(--soft); letter-spacing: -0.012em; max-width: 640px; margin: 22px auto 0; }
.fine { font-size: 13px; color: var(--soft); margin: 14px 0 0; }

/* the logo's folder tab, as a label */
.tabchip { display: inline-flex; align-items: center; height: 26px; padding: 0 14px; font-size: 13px; font-weight: 600; color: #1a1a1a; background: var(--c, var(--coral)); border: 2px solid #1a1a1a; border-bottom: 0; border-radius: 9px 9px 0 0; letter-spacing: -0.005em; }
.tabchip.coral { --c: var(--coral); } .tabchip.olive { --c: var(--olive); } .tabchip.cobalt { --c: var(--cobalt); color: #fff; } .tabchip.teal { --c: var(--teal); color: #fff; }
.kicker { display: flex; justify-content: center; gap: 0; margin: 0 0 22px; }
.kicker .tabchip + .tabchip { margin-left: -2px; }
.kicker .tabchip:nth-child(2) { transform: translateY(6px); }
.kicker .tabchip:nth-child(3) { transform: translateY(12px); }

/* pills */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; border: 2px solid var(--accent); }
.pill:hover { background: var(--accent-hover); color: var(--accent-ink); }
.pill.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.pill.ghost:hover { border-color: var(--ink); color: var(--ink); }
.pill.sm { height: 34px; padding: 0 15px; font-size: 13.5px; }
.pill.block { width: 100%; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav-in { max-width: 1120px; margin: 0 auto; height: 60px; padding: 0 20px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.brand svg { display: block; }
.brand .word path, .brand .word circle { stroke: var(--ink); }
/* the logo's ink lines follow the theme (they vanish on dark otherwise) */
.brand svg [stroke="#1A1A1A"] { stroke: var(--outline); }
.brand svg [fill="#1A1A1A"] { fill: var(--outline); }
.brand .word circle[fill] { fill: var(--ink); }
.nav nav { display: flex; gap: 24px; margin-left: auto; }
.nav nav a { color: var(--soft); text-decoration: none; font-size: 14px; }
.nav nav a:hover { color: var(--ink); }

/* hero */
.hero { text-align: center; padding: clamp(56px, 9vw, 100px) 20px 32px; }
.ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

.stage { max-width: 1080px; margin: 60px auto 0; }
.browser { text-align: left; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: 6px 6px 0 var(--outline), var(--shadow); border: 2px solid var(--outline); font-size: 12.5px; }
.strip { height: 42px; background: var(--strip); display: flex; align-items: flex-end; gap: 4px; padding: 0 10px; overflow: hidden; }
.lights { display: flex; gap: 7px; align-self: center; margin-right: 8px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--coral); border: 1.5px solid var(--outline); }
.lights i:nth-child(2) { background: var(--olive); }
.lights i:nth-child(3) { background: var(--teal); }
.chip { align-self: center; height: 21px; padding: 0 9px; border-radius: 6px; color: #fff; background: var(--c); font-size: 11.5px; font-weight: 500; display: inline-flex; align-items: center; white-space: nowrap; }
.btab { height: 32px; padding: 0 10px; display: inline-flex; align-items: center; gap: 7px; border-radius: 8px 8px 0 0; color: var(--ink); white-space: nowrap; max-width: 210px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.btab.on { background: var(--card); }
.bar { height: 40px; display: flex; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--line); }
.omni { flex: 1; height: 28px; border-radius: 14px; background: var(--sk); display: flex; align-items: center; padding: 0 14px; color: var(--soft); font-size: 12.5px; }
.body { display: flex; min-height: 560px; }

/* the panel mockup — same look as the extension */
.panel { width: 330px; flex: none; border-right: 1px solid var(--line); padding: 0 6px; display: flex; flex-direction: column; overflow: hidden; background: color-mix(in srgb, var(--band) 60%, var(--card)); }
.cp-head { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px; font-size: 12.5px; flex: none; }
.m-search { margin: 2px 0 4px; height: 28px; border-radius: 6px; background: var(--sk); display: flex; align-items: center; gap: 7px; padding: 0 7px 0 9px; color: var(--soft); flex: none; }
.m-search span { flex: 1; }
.m-search kbd { border: 0; background: transparent; font-size: 10px; padding: 0; }
.m-nav { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 8px; border-radius: 6px; flex: none; }
.m-nav svg { color: var(--soft); }
.m-nav span { flex: 1; }
.m-nav em { font-style: normal; color: var(--old); font-weight: 600; font-size: 11.5px; }
.m-sec { display: flex; align-items: center; gap: 5px; padding: 12px 6px 4px 8px; font-size: 11.5px; font-weight: 500; color: var(--soft); flex: none; }
.m-sec span { opacity: 0.7; font-weight: 400; }
.m-sec i, .m-sec u { margin-left: auto; font-style: normal; text-decoration: none; }
.m-task { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; border-radius: 6px; flex: none; }
.m-task .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g); flex: none; }
.m-task b { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-task.done b { color: var(--soft); text-decoration: line-through; }
.m-task.hover { background: var(--sk); }
.m-task .acts { color: var(--soft); letter-spacing: 6px; font-size: 12px; }
.m-task .n { color: var(--soft); opacity: 0.8; font-size: 11px; min-width: 12px; text-align: right; }
.strip-f { display: inline-flex; gap: 3px; opacity: 0.85; }
.strip-f .fv { width: 12px; height: 12px; font-size: 7px; }
.state { font-size: 10.5px; padding: 0 6px; line-height: 17px; border-radius: 4px; background: var(--sk); color: var(--soft); flex: none; }
.state.wait { background: var(--wait-bg); color: var(--wait-ink); }
.m-body { position: relative; flex: none; padding-left: 4px; }
.m-body::before { content: ""; position: absolute; left: 11px; top: 2px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--g); opacity: 0.45; }
.m-row { position: relative; display: flex; align-items: center; gap: 7px; height: 26px; padding: 0 6px 0 24px; border-radius: 6px; white-space: nowrap; flex: none; }
.m-row.loose { padding-left: 8px; }
.m-row .guide { position: absolute; left: 28px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.tt { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.age { font-family: var(--mono); font-size: 10px; color: var(--soft); opacity: 0.8; flex: none; }
.age.old { color: var(--old); opacity: 1; }
.m-row.new { animation: arrive 3.2s ease-out 0.6s both; }
@keyframes arrive {
  0% { opacity: 0; transform: translateY(-6px); background: color-mix(in srgb, var(--coral) 35%, transparent); }
  25% { opacity: 1; transform: none; background: color-mix(in srgb, var(--coral) 35%, transparent); }
  100% { background: transparent; }
}
@media (prefers-reduced-motion: reduce) { .m-row.new { animation: none; } }
.fv { width: 15px; height: 15px; border-radius: 4px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 9px; font-weight: 600; font-style: normal; }
.m-foot { margin-top: auto; border-top: 1px solid var(--line); padding: 9px 8px; color: var(--soft); font-size: 11px; display: flex; align-items: center; gap: 7px; flex: none; }
.p-links { margin-left: auto; }
.ok { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: none; }
.page { flex: 1; min-width: 0; padding: 28px 32px; display: flex; flex-direction: column; gap: 14px; }
.pg-title { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.pg-title span { color: var(--soft); font-weight: 400; }
.pg-state { color: var(--soft); }
.pg-state span { background: var(--teal); color: #fff; border-radius: 12px; padding: 2px 9px; font-size: 11.5px; margin-right: 6px; }
.pg-card { border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 9px; }
.pg-card i { display: block; height: 10px; border-radius: 4px; background: var(--sk); }

/* feature rows */
.features { max-width: 1080px; margin: 0 auto; padding: 96px 20px 24px; display: flex; flex-direction: column; gap: clamp(72px, 10vw, 128px); }
.frow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; scroll-margin-top: 90px; }
.frow.flip .ftext { order: 2; }
.ftext .tabchip { margin-bottom: 18px; }
.ftext p { color: var(--soft); font-size: 17px; line-height: 1.55; margin: 18px 0 0; max-width: 470px; }
.ftext p.note { font-size: 15px; }
.fcard { background: var(--band); border-radius: 24px; padding: clamp(22px, 4vw, 44px); }
.sheet { background: var(--card); border: 2px solid var(--outline); border-radius: 14px; box-shadow: 5px 5px 0 var(--outline); padding: 8px; font-size: 14px; display: flex; flex-direction: column; }
.sheet .m-task { height: 34px; font-size: 14px; }
.sheet .m-sec { font-size: 12.5px; }
.fin { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; }
.fin > i { font-style: normal; color: var(--teal); font-weight: 700; }
.fin > span { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.fin b { font-weight: 500; }
.fin small, .cm small { color: var(--soft); font-size: 12px; }
.fin em, .restore em, .backups em { font-style: normal; font-size: 12.5px; border: 1.5px solid var(--outline); border-radius: 7px; padding: 2px 9px; }
.rv-chips { display: flex; gap: 6px; padding: 4px 4px 2px; }
.rv-chips span { font-size: 12px; padding: 3px 10px; border-radius: 6px; background: var(--sk); color: var(--soft); }
.rv-chips span.on { background: var(--ink); color: var(--bg); }
.rv-label { display: flex; gap: 6px; padding: 12px 8px 4px; font-size: 12.5px; color: var(--soft); font-weight: 500; }
.rv-label span { font-weight: 400; }
.rv-label u { margin-left: auto; text-decoration: none; color: var(--ink); }
.rv { position: relative; display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 8px; border-radius: 7px; overflow: hidden; }
.rv .tdot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.rv .under { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 12px; color: #fff; font-weight: 600; font-size: 12.5px; }
.rv .face { position: absolute; inset: 0; display: flex; align-items: center; gap: 9px; padding: 0 8px; background: var(--card); }
.rv.swipe-l .under { background: var(--old); justify-content: flex-end; }
.rv.swipe-l .face { transform: translateX(-84px); box-shadow: 4px 0 10px rgba(0, 0, 0, 0.06); }
.rv.swipe-r .under { background: var(--cobalt); }
.rv.swipe-r .face { transform: translateX(76px); box-shadow: -4px 0 10px rgba(0, 0, 0, 0.06); }
.restore { display: flex; align-items: center; gap: 9px; padding: 10px 10px; border-bottom: 1px solid var(--line); }
.restore > i { font-style: normal; color: var(--teal); font-weight: 700; }
.restore span { flex: 1; color: var(--soft); }
.backups { list-style: none; margin: 0; padding: 4px; }
.backups li { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px; }
.backups li span { margin-left: auto; color: var(--soft); font-size: 13px; }
.backups i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--soft); }
.backups i.now { background: var(--teal); border-color: var(--teal); }
.cm { display: grid; grid-template-columns: 1fr auto; padding: 7px 10px; border-radius: 8px; }
.cm b { font-weight: 500; }
.cm small { grid-column: 1; }
.cm kbd { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.cm.on { background: var(--sk); }
mark { background: var(--mark); color: inherit; border-radius: 2px; }

/* tiles */
.tiles { max-width: 1080px; margin: 0 auto; padding: 104px 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--band); border-radius: 20px; padding: 26px 24px; }
.tile p { color: var(--soft); margin: 8px 0 0; font-size: 15px; }
.who { padding-top: 104px; }
.who .tiles { padding-top: 40px; padding-bottom: 0; }
.tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.phone { padding-top: 0; }
.tt-ico { display: block; width: 34px; height: 14px; margin-bottom: 16px; background: var(--c); border: 2px solid #1a1a1a; border-bottom-width: 2px; border-radius: 7px 7px 2px 2px; clip-path: polygon(0 100%, 0 40%, 22% 0, 78% 0, 100% 40%, 100% 100%); }
.tt-ico.coral { --c: var(--coral); } .tt-ico.olive { --c: var(--olive); } .tt-ico.cobalt { --c: var(--cobalt); } .tt-ico.teal { --c: var(--teal); }

/* band */
.band { background: var(--band); padding: clamp(72px, 9vw, 112px) 20px; }
.band-in { max-width: 1080px; margin: 0 auto; }
.band .lede { margin-bottom: 48px; }
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.why-i { background: var(--card); border-radius: 18px; padding: 22px 22px 24px; border: 1px solid var(--line); }
.why-i .q { margin: 0; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.why-i .q::before { content: "“"; color: var(--coral); font-weight: 700; margin-right: 1px; }
.why-i .a { margin: 8px 0 0; color: var(--soft); font-size: 15px; }
.band .fine { margin-top: 28px; }

/* pricing */
.pricing { padding: clamp(80px, 10vw, 128px) 20px; }
.price-grid { max-width: 820px; margin: 40px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.price-card { border: 1px solid var(--line); border-radius: 24px; padding: 32px; background: var(--card); display: flex; flex-direction: column; }
.price-card.pro { border: 2px solid var(--outline); box-shadow: 6px 6px 0 var(--outline); }
.price-card h3 { font-size: 15px; color: var(--soft); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.price { display: flex; align-items: baseline; gap: 10px; }
.amt { font-family: var(--display); font-size: 52px; font-weight: 700; letter-spacing: -0.035em; }
.per { color: var(--soft); }
.price-card ul { list-style: none; margin: 20px 0 26px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-card li { display: flex; gap: 10px; align-items: baseline; }
.price-card li::before { content: ""; width: 13px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg) translateY(-3px); flex: none; }
.once { font-size: 11px; font-weight: 600; color: #1a1a1a; background: var(--olive); border: 1.5px solid #1a1a1a; border-radius: 6px; padding: 1px 7px; }
.pricing > .fine { margin-top: 20px; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; padding: 0 20px clamp(80px, 10vw, 128px); }
.qa { margin-top: 40px; border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; font-weight: 300; color: var(--soft); transition: transform 0.2s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa p { margin: 0 0 22px; color: var(--soft); font-size: 16px; line-height: 1.6; }

/* footer */
.foot { border-top: 1px solid var(--line); }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 28px 20px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 14px; }

/* responsive */
@media (max-width: 900px) {
  .hide-m { display: none; }
  .tiles, .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .nav nav { display: none; }
  .nav-in .pill { margin-left: auto; }
  .frow { grid-template-columns: minmax(0, 1fr); }
  .frow.flip .ftext { order: 0; }
  .page { display: none; }
  .panel { width: 100%; border-right: 0; }
  .body { min-height: 0; }
  .hide-s { display: none; }
  .tiles, .tiles.four, .why { grid-template-columns: minmax(0, 1fr); }
  .price-grid { grid-template-columns: minmax(0, 1fr); }
  .browser { box-shadow: 4px 4px 0 var(--outline), var(--shadow); }
}

/* success page */
.success { max-width: 640px; margin: 0 auto; padding: clamp(56px, 9vw, 96px) 20px 96px; }
.success-h { font-size: clamp(36px, 6vw, 52px); text-align: center; margin-bottom: 36px; }
.keybox { border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: var(--card); }
.keybox.error { border-color: #d93025; }
.keylabel { display: block; font-weight: 600; margin-bottom: 8px; }
.keybox textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font: 13px/1.5 var(--mono); background: var(--band); color: var(--ink); resize: none; word-break: break-all; }
.keyactions { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; font-size: 14px; }
.steps { margin: 22px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); }

/* habit chips in the Habits mockup */
.hchips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 6px 10px; }
.hchips span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 14px; font-size: 13px; }
.hchips span[style]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--d); }
.hchips span.on { border-color: var(--outline); background: var(--sk); }
.hchips i { font-style: normal; color: var(--soft); font-size: 12px; }
/* iPhone review mockup */
.phone-sheet { gap: 8px; padding: 12px; }
.pcard { display: flex; flex-direction: column; gap: 6px; padding: 18px 16px; border: 2px solid var(--outline); border-radius: 12px; box-shadow: 3px 3px 0 var(--outline); }
.pcard small { color: var(--soft); font-size: 13px; }
.pcard b { font-size: 17px; line-height: 1.3; }
.pcard em { font-style: normal; color: #d9730d; font-size: 13px; }
.pacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pacts.one { grid-template-columns: 1fr; }
.pacts span { display: flex; align-items: center; justify-content: center; height: 38px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px; }
