/* ============================================================
   FindyTag — Scandinavian design system
   Warm paper · editorial serif + clean sans · hairline borders
   Restrained sage / clay / stone palette · generous whitespace
   ============================================================ */
:root {
  /* surfaces */
  --paper:   #f3efe7;   /* page background (warm bone) */
  --cream:   #ece6da;   /* alternating sections */
  --card:    #fbf9f4;   /* card / surface */
  --white:   #ffffff;

  /* ink & text */
  --ink:     #23221d;   /* near-black, warm */
  --ink-2:   #3a382f;
  --muted:   #6f6a5e;   /* secondary text */
  --faint:   #9a9484;

  /* lines */
  --line:    #e3dccd;   /* hairline border */
  --line-2:  #d6cdb9;

  /* accents (used sparingly) */
  --sage:    #5e7056;   /* primary green */
  --sage-deep:#47553f;  /* button / hover */
  --clay:    #b5714e;   /* terracotta highlight */
  --clay-soft:#cd9576;
  --sky:     #8ba3a6;   /* muted nordic blue */
  --sage-tint:#e7e9df;  /* soft green wash */
  --clay-tint:#f0e4db;

  --radius:  10px;
  --radius-sm: 7px;
  --maxw: 1180px;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
a:hover { border-color: currentColor; text-decoration: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 460;
  font-optical-sizing: auto;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 430; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; font-weight: 500; }
p { margin: 0 0 1.1rem; }
strong { font-weight: 600; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 104px 0; }
.section.alt { background: var(--cream); }
.eyebrow {
  display: inline-block; font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--clay); margin-bottom: 1.1rem;
}
.lead { font-size: 1.24rem; line-height: 1.6; color: var(--ink-2); max-width: 60ch; font-weight: 400; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ============================================================
   Buttons — flat, rectangular, restrained
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; cursor: pointer;
  font-family: var(--sans); font-weight: 540; font-size: .98rem; letter-spacing: .005em;
  padding: .92rem 1.7rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; transition: .2s ease; line-height: 1; white-space: nowrap;
}
.btn:hover { border-bottom: 1px solid transparent; }
.btn-primary { background: var(--sage-deep); color: #f6f3ea; }
.btn-primary:hover { background: var(--ink); }
.btn-navy { background: var(--ink); color: #f4f1e9; }      /* "ink" button (legacy class) */
.btn-navy:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(35,34,29,.03); }
.btn-light { background: var(--white); color: var(--ink); border-color: rgba(0,0,0,.06); }
.btn-light:hover { background: var(--cream); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: .62rem 1.15rem; font-size: .9rem; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(243,239,231,.86);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-weight: 500;
  font-size: 1.4rem; color: var(--ink); letter-spacing: -0.01em; border: 0; }
.brand:hover { border: 0; }
.brand .logo-mark { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: .96rem; border: 0; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px;
  background: var(--clay); transition: width .25s; }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 1.1rem; }
.cart-link { position: relative; font-weight: 500; color: var(--ink); border: 0; font-size: 1.05rem; }
.cart-link:hover { border: 0; }
.cart-count {
  position: absolute; top: -9px; right: -13px; background: var(--clay); color: #fff;
  font-size: .66rem; font-weight: 700; min-width: 17px; height: 17px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; font-family: var(--sans);
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); margin: 6px 0; transition: .2s; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; background: var(--paper); flex-direction: column;
    align-items: flex-start; gap: 0; padding: 8px 28px 20px; border-bottom: 1px solid var(--line); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .85rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
}

/* ============================================================
   Hero — light, airy, editorial
   ============================================================ */
.hero { background: var(--paper); padding: 96px 0 104px; position: relative; overflow: hidden; }
.hero .tagline { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--clay);
  font-size: 1.4rem; margin-bottom: .9rem; }
.hero h1 { margin-bottom: 1.1rem; }
.hero p.lead { color: var(--ink-2); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-trust { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .82rem; display: flex; gap: 1.6rem; flex-wrap: wrap;
  letter-spacing: .02em; }
.hero-trust span { display: inline-flex; align-items: center; gap: .45rem; }

/* soft panel behind the phone */
.hero-visual { display: flex; justify-content: center; align-items: center;
  background: var(--sage-tint); border-radius: 18px; padding: 52px 0;
  border: 1px solid var(--line); }

/* phone mock */
.phone { width: 256px; margin: 0 auto; background: #2a2a26; border: 9px solid #1c1c19;
  border-radius: 32px; box-shadow: 0 20px 45px rgba(35,34,29,.16); overflow: hidden; }
.phone-screen { background: var(--white); padding: 24px 20px 28px; }
.scan-card { text-align: center; }
.scan-qr { width: 116px; height: 116px; margin: 4px auto 16px; }
.scan-card h4 { color: var(--ink); margin: 0 0 4px; font-size: 1.08rem; }
.scan-card .sub { color: var(--muted); font-size: .82rem; margin-bottom: 16px; font-family: var(--sans); }
.scan-msg { background: var(--cream); border: 1px solid var(--line); border-radius: 8px;
  padding: 11px 13px; text-align: left; font-size: .8rem; color: var(--ink-2); margin-bottom: 14px;
  font-family: var(--sans); line-height: 1.5; }
.scan-btn { background: var(--sage-deep); color: #f4f1e9; border-radius: 7px; padding: 11px; font-weight: 540;
  font-size: .85rem; text-align: center; font-family: var(--sans); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: -1; padding: 40px 0; }
}

/* ============================================================
   Cards / grids
   ============================================================ */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: .25s ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card .ico {
  width: 48px; height: 48px; border-radius: 50%; background: var(--paper);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 1.4rem; filter: saturate(.7);
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* steps */
.step .num {
  width: 46px; height: 46px; border-radius: 50%; background: transparent; color: var(--clay);
  border: 1px solid var(--clay-soft); font-family: var(--serif); font-weight: 500; display: flex;
  align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 18px;
}
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--muted); margin: 0; font-size: .98rem; }

/* use-case pills */
.usecases { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .62rem 1.2rem;
  font-weight: 500; font-size: .92rem; color: var(--ink-2); display: inline-flex; gap: .55rem; align-items: center;
}
.pill:hover { border-color: var(--line-2); }
.pill .e { font-size: 1.05rem; filter: saturate(.7); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
.stat { text-align: center; padding: 8px; }
.stat .big { font-family: var(--serif); font-size: 2.9rem; font-weight: 400; color: var(--ink); line-height: 1; }
.stat .lbl { color: var(--muted); font-size: .8rem; margin-top: .55rem; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2,1fr); gap: 32px; } }

/* ============================================================
   Plans
   ============================================================ */
.plans { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; align-items: stretch;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--card); padding: 34px 28px; display: flex; flex-direction: column;
  border-right: 1px solid var(--line); }
.plan:last-child { border-right: 0; }
@media (max-width: 1000px) { .plan { border-bottom: 1px solid var(--line); } }
.plan.featured { background: var(--sage-tint); position: relative; }
.plan.featured::after { content: "Most popular"; position: absolute; top: 16px; right: 16px;
  font-family: var(--sans); background: var(--clay); color: #fff; font-size: .66rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; letter-spacing: .08em; text-transform: uppercase; }
.plan h3 { margin-bottom: .3rem; font-size: 1.15rem; }
.plan .price { font-family: var(--serif); font-size: 2.1rem; font-weight: 400; color: var(--ink); margin: .4rem 0 .1rem; }
.plan .price span { font-size: .85rem; font-weight: 400; color: var(--muted); font-family: var(--sans); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; flex: 1; }
.plan li { padding: 7px 0 7px 24px; position: relative; font-size: .93rem; color: var(--ink-2); }
.plan li::before { content: ""; position: absolute; left: 0; top: 14px; width: 9px; height: 9px;
  border-left: 1.5px solid var(--sage); border-bottom: 1.5px solid var(--sage); transform: rotate(-45deg); }

/* ============================================================
   Products (shop)
   ============================================================ */
.product { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: .25s ease; }
.product:hover { border-color: var(--line-2); transform: translateY(-2px); }
.product .thumb { height: 168px; display: flex; align-items: center; justify-content: center; font-size: 3.2rem;
  background: var(--sage-tint); filter: saturate(.78); border-bottom: 1px solid var(--line); }
.product:nth-child(2n) .thumb { background: var(--clay-tint); }
.product .body { padding: 26px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.product .tag-badge { font-family: var(--sans); font-size: .68rem; font-weight: 600; color: var(--clay);
  text-transform: uppercase; letter-spacing: .14em; }
.product h3 { margin: 8px 0 6px; }
.product .desc { color: var(--muted); font-size: .93rem; margin-bottom: 18px; flex: 1; line-height: 1.6; }
.product .priceline { display: flex; align-items: baseline; gap: .4rem; margin-bottom: 16px; }
.product .priceline .amt { font-family: var(--serif); font-size: 1.7rem; font-weight: 400; color: var(--ink); }
.product .priceline .cur { font-size: .85rem; font-weight: 500; color: var(--muted); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; }
.qty button { background: transparent; border: 0; width: 34px; height: 38px; cursor: pointer; font-size: 1.1rem; color: var(--ink); }
.qty button:hover { background: var(--cream); }
.qty input { width: 40px; height: 38px; border: 0; text-align: center; font-weight: 600; font-size: .95rem; background: transparent; color: var(--ink); }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.addrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ============================================================
   Forms
   ============================================================ */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; font-size: .88rem; margin-bottom: 7px; color: var(--ink); letter-spacing: .01em; }
.field .req { color: var(--clay); }
.field input, .field select, .field textarea {
  width: 100%; padding: .82rem .95rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: .96rem; color: var(--ink); background: var(--white); transition: .15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(94,112,86,.12); }
.field textarea { resize: vertical; min-height: 120px; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.choice-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
@media (max-width: 560px) { .choice-grid { grid-template-columns: 1fr; } }
.choice { border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 15px; cursor: pointer;
  transition: .15s; display: flex; gap: 11px; align-items: flex-start; background: var(--white); }
.choice:hover { border-color: var(--sage); }
.choice input { width: auto; margin-top: 3px; accent-color: var(--sage); }
.choice.selected { border-color: var(--sage); background: var(--sage-tint); }
.choice .e { font-size: 1.35rem; filter: saturate(.7); }
.choice strong { display: block; color: var(--ink); font-size: .94rem; font-weight: 600; }
.choice small { color: var(--muted); }

/* ============================================================
   Cart drawer
   ============================================================ */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(35,34,29,.4); opacity: 0; visibility: hidden;
  transition: .25s; z-index: 90; }
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: 410px; max-width: 92vw; background: var(--paper);
  z-index: 100; transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column;
  box-shadow: -20px 0 50px rgba(35,34,29,.14); }
.drawer.open { transform: translateX(0); }
.drawer-head { padding: 24px 26px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.drawer-head h3 { margin: 0; }
.drawer-close { background: none; border: 0; font-size: 1.7rem; cursor: pointer; color: var(--muted); line-height: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 26px; }
.drawer-empty { color: var(--muted); text-align: center; padding: 56px 10px; }
.cart-item { display: flex; gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item .ci-emoji { font-size: 1.8rem; width: 50px; height: 50px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; filter: saturate(.7); }
.cart-item .ci-info { flex: 1; }
.cart-item .ci-name { font-weight: 600; color: var(--ink); font-size: .95rem; }
.cart-item .ci-price { color: var(--muted); font-size: .84rem; }
.cart-item .ci-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.ci-remove { background: none; border: 0; color: var(--clay); cursor: pointer; font-size: .82rem; padding: 0; }
.ci-remove:hover { text-decoration: underline; }
.drawer-foot { padding: 24px 26px; border-top: 1px solid var(--line); background: var(--cream); }
.drawer-total { display: flex; justify-content: space-between; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); margin-bottom: 4px; }
.drawer-foot .vat { color: var(--muted); font-size: .8rem; margin-bottom: 16px; }

/* ============================================================
   CTA strip — solid muted block
   ============================================================ */
.cta-strip { background: var(--ink); color: #ece6d8; border-radius: var(--radius); padding: 72px 56px; text-align: center; }
.cta-strip h2 { color: #f4efe4; }
.cta-strip .eyebrow { color: var(--clay-soft); }
.cta-strip p { color: #c7c0b0; max-width: 56ch; margin: 0 auto 1.6rem; }
.cta-strip--sage { background: var(--sage-deep); }
.cta-strip--sage p { color: #d6dccb; }
.cta-strip--clay { background: var(--clay); }
.cta-strip--clay .eyebrow, .cta-strip--clay p { color: #f4e4d8; }

/* ============================================================
   Compare table
   ============================================================ */
.compare { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .94rem; }
.compare th { background: var(--ink); color: #ece6d8; font-family: var(--serif); font-weight: 460; }
.compare th:first-child { background: var(--ink); }
.compare td:first-child { font-weight: 500; color: var(--ink); }
.compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--sage); font-weight: 700; }
.compare .no { color: var(--clay); }
.compare .row-hi { background: var(--sage-tint); }
.table-scroll { overflow-x: auto; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: #b8b1a2; padding: 80px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
.site-footer h4 { color: #efe9dc; font-family: var(--sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #aaa294; font-size: .92rem; border: 0; }
.site-footer a:hover { color: #f4efe4; border: 0; }
.footer-brand .brand { color: #f4efe4; margin-bottom: 14px; }
.footer-brand p { color: #948c7e; font-size: .92rem; max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .84rem; color: #837b6d; }

/* ============================================================
   Toast / page hero / misc
   ============================================================ */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(150%);
  background: var(--ink); color: #f4efe4; padding: 14px 26px; border-radius: var(--radius-sm); font-weight: 500;
  box-shadow: 0 14px 34px rgba(35,34,29,.22); z-index: 120; transition: transform .32s ease; font-size: .92rem; }
.toast.show { transform: translateX(-50%) translateY(0); }

.page-hero { background: var(--cream); padding: 84px 0 72px; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: .5rem; }
.page-hero p { color: var(--ink-2); max-width: 62ch; font-size: 1.16rem; }
.breadcrumb { color: var(--muted); font-size: .82rem; margin-bottom: 20px; letter-spacing: .06em; text-transform: uppercase; }
.breadcrumb a { color: var(--muted); border: 0; }
.breadcrumb a:hover { color: var(--ink); }

.note { background: var(--sage-tint); border-left: 2px solid var(--sage); padding: 16px 20px; border-radius: var(--radius-sm);
  color: var(--ink-2); font-size: .92rem; }
.success-box { background: var(--sage-tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; color: var(--ink); }
.success-box h3 { color: var(--ink); }
.hidden { display: none !important; }
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item summary { font-family: var(--serif); font-size: 1.12rem; font-weight: 460; color: var(--ink); cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--clay); font-size: 1.5rem; line-height: 1; font-family: var(--sans); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 14px 0 0; color: var(--muted); }
