:root {
  --paper: #F0F3F1;
  --paper-raised: #FFFFFF;
  --ink: #141A18;
  --ink-soft: #4B5650;
  --line: #D7DFDA;
  --teal: #0E6E64;
  --teal-deep: #0A4F48;
  --teal-tint: #DCEBE8;
  --amber: #C96A34;
  --amber-tint: #F3E4D5;
  --shadow: 0 1px 2px rgba(20,26,24,0.04), 0 8px 24px rgba(20,26,24,0.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #101513;
    --paper-raised: #182220;
    --ink: #EAF0EC;
    --ink-soft: #9FB0A8;
    --line: #263630;
    --teal: #55C8B9;
    --teal-deep: #8CE4D6;
    --teal-tint: #16302C;
    --amber: #E39461;
    --amber-tint: #34261B;
    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 12px 32px rgba(0,0,0,0.35);
  }
}
:root[data-theme="dark"] {
  --paper: #101513;
  --paper-raised: #182220;
  --ink: #EAF0EC;
  --ink-soft: #9FB0A8;
  --line: #263630;
  --teal: #55C8B9;
  --teal-deep: #8CE4D6;
  --teal-tint: #16302C;
  --amber: #E39461;
  --amber-tint: #34261B;
  --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 12px 32px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--teal-tint); color: var(--teal-deep); }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.serif { font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif; }
.mono {
  font-family: ui-monospace, "SF Mono", "Menlo", "Cascadia Mono", monospace;
  font-variant-numeric: tabular-nums;
}
.eyebrow {
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
section { padding: clamp(56px, 8vw, 108px) 0; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.measure { max-width: 62ch; }

/* ---------- header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 4vw, 48px);
  max-width: 1100px;
  margin: 0 auto;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  flex: none;
}
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--teal);
  position: relative;
  flex: none;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 6px 7px 6px 6px;
  border: 1.6px solid var(--paper-raised);
  border-radius: 2px;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}
nav.links {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  font-size: 0.9rem;
}
nav.links a { text-decoration: none; color: var(--ink-soft); }
nav.links a:hover { color: var(--ink); }
.lang-switch {
  display: flex;
  gap: 2px;
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
  font-size: 0.78rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px;
}
.lang-switch a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 3px 8px;
  border-radius: 6px;
}
.lang-switch a.active {
  color: var(--ink);
  font-weight: 700;
  background: var(--paper);
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(56px, 9vw, 120px);
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .phone-stage { order: -1; margin: 0 auto; }
}
.hero h1 {
  font-size: clamp(2.3rem, 4.4vw + 1rem, 3.7rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-top: 14px;
}
.hero p.lead {
  margin-top: 20px;
  font-size: 1.1rem;
  color: var(--ink-soft);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 30%, transparent);
}
.cta-note { font-size: 0.85rem; color: var(--ink-soft); }
.cta-note strong { color: var(--ink); font-weight: 600; }

/* ---------- phone mockup ---------- */
.phone-stage {
  position: relative;
  width: min(300px, 76vw);
  justify-self: center;
}
.paper-back {
  position: absolute;
  inset: 0;
  border-radius: 34px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
}
.paper-back.p1 { transform: rotate(-6deg) translate(-10px, 10px); opacity: 0.55; }
.paper-back.p2 { transform: rotate(4deg) translate(8px, 4px); opacity: 0.75; }
.phone {
  position: relative;
  aspect-ratio: 9 / 19.5;
  border-radius: 34px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 14px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.phone .clock { font-size: 0.72rem; font-weight: 600; }
.phone .status { display: flex; justify-content: space-between; align-items: center; padding: 0 2px; }
.phone .status .icons { display: flex; gap: 4px; align-items: center; }
.phone .status .bar { width: 14px; height: 8px; border: 1px solid var(--ink); border-radius: 2px; position: relative; }
.phone .status .bar::after { content:""; position:absolute; inset: 1.5px; width: 60%; background: var(--ink); border-radius: 1px; }
.phone .title { font-size: 1.2rem; font-weight: 700; margin-top: 4px; }
.phone .greet { font-size: 1rem; font-weight: 700; color: var(--ink-soft); }
.scan-btn {
  margin-top: 4px;
  background: var(--teal);
  color: #fff;
  border-radius: 13px;
  padding: 13px 10px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
}
.quick-label { font-size: 0.68rem; font-weight: 700; color: var(--ink-soft); margin-top: 2px; }
.tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 6px;
}
.tool {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tool .icon {
  width: 20px; height: 20px;
  border: 1.4px solid var(--teal);
  border-radius: 5px;
}
.tool .name { font-size: 0.66rem; font-weight: 600; color: var(--teal); }
.pro-tag {
  align-self: flex-start;
  background: var(--amber-tint);
  color: var(--amber);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 6px;
}
.tabbar {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.tabbar span { font-size: 0.5rem; color: var(--ink-soft); font-weight: 600; }
.tabbar span.active { color: var(--teal); }

.scanline {
  position: absolute;
  left: 6%; right: 6%;
  height: 34%;
  top: -40%;
  background: linear-gradient(
    to bottom,
    transparent,
    color-mix(in srgb, var(--teal) 30%, transparent) 45%,
    color-mix(in srgb, var(--teal) 55%, transparent) 50%,
    color-mix(in srgb, var(--teal) 30%, transparent) 55%,
    transparent
  );
  animation: sweep 3.6s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: multiply;
}
:root[data-theme="dark"] .scanline { mix-blend-mode: screen; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .scanline { mix-blend-mode: screen; }
}
@keyframes sweep {
  0%   { top: -40%; opacity: 0; }
  12%  { opacity: 1; }
  50%  { top: 100%; opacity: 1; }
  62%  { opacity: 0; }
  100% { top: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scanline { animation: none; opacity: 0; }
}

/* ---------- workflow strip ---------- */
.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
@media (max-width: 760px) { .workflow { grid-template-columns: 1fr 1fr; } }
.step {
  background: var(--paper-raised);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step .num { color: var(--teal); font-size: 0.8rem; font-weight: 700; }
.step h3 { font-size: 1.08rem; }
.step p { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- section heads ---------- */
.head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
}
.head h2 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2.15rem); }
.head p { color: var(--ink-soft); }

/* ---------- tool grid ---------- */
.grid-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 760px) { .grid-tools { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .grid-tools { grid-template-columns: 1fr; } }
.tool-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tool-card .tag { font-size: 0.68rem; color: var(--ink-soft); }
.tool-card h3 { font-size: 1rem; }
.tool-card p { color: var(--ink-soft); font-size: 0.88rem; }
.badge-pro {
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--amber);
  background: var(--amber-tint);
  padding: 2px 7px;
  border-radius: 6px;
}

/* ---------- privacy receipt ---------- */
.receipt {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 40px);
  max-width: 560px;
}
.receipt .rline { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 0.92rem; }
.receipt .rline .k { color: var(--ink-soft); }
.receipt .rule { border-top: 1px dashed var(--line); margin: 10px 0; }
.receipt .total { font-weight: 700; }
.privacy-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 800px) { .privacy-wrap { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 700px) { .pricing { grid-template-columns: 1fr; } }
.stub {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(24px, 3vw, 32px);
  position: relative;
}
.stub.pro { border-color: var(--amber); }
.stub .plan { font-size: 0.85rem; color: var(--ink-soft); }
.stub .price { font-size: 2.3rem; font-weight: 700; margin-top: 6px; }
.stub .price sub { font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); }
.stub ul { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; }
.stub li { display: flex; gap: 10px; }
.stub li::before { content: "—"; color: var(--ink-soft); flex: none; }
.stub.pro li::before { content: "—"; color: var(--amber); }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
details {
  background: var(--paper-raised);
  padding: 18px 22px;
}
summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.98rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  color: var(--teal);
  font-size: 1.2rem;
  font-weight: 400;
  flex: none;
}
details[open] summary::after { content: "–"; }
details p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 62ch;
}

.contact-card {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--teal-tint);
  border-radius: 14px;
  padding: 22px 26px;
  max-width: 720px;
}
.contact-card a.mail {
  font-weight: 700;
  color: var(--teal-deep);
  text-decoration: none;
  border-bottom: 1.5px solid var(--teal-deep);
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.foot-row nav { display: flex; gap: 18px; }
.foot-row a { text-decoration: none; color: var(--ink-soft); }
.foot-row a:hover { color: var(--ink); }
