/* masatio.com — same "field tag" system as the app: navy ink on white and zinc,
   signal yellow only for the tag. Archivo, normal width for text, expanded for headings. */
:root {
  --ink: #17244a; --ink-2: #57617a; --ink-3: #8a92a6;
  --surface: #ffffff; --zinc: #eef0f2; --zinc-2: #e1e4e9;
  --rule: #dde1e7; --rule-strong: #c3c9d3;
  --signal: #ffc61a; --signal-ink: #17244a; --signal-edge: #e0a800;
  --action: #17244a; --action-ink: #ffffff; --action-hover: #22346a;
  --focus: #2f6bff; --ok: #23804e; --err: #c23434; --soon: #2f5fc4;
  --font: 'Archivo', 'Segoe UI', Roboto, Arial, sans-serif;
  --r-s: 4px; --r-m: 8px; --r-l: 14px;
  --gutter: 20px; --max: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e8ecf5; --ink-2: #a6afc4; --ink-3: #6f7891;
    --surface: #121b33; --zinc: #0c1328; --zinc-2: #1b2645;
    --rule: #243052; --rule-strong: #34426b;
    --action: #e8ecf5; --action-ink: #0c1328; --action-hover: #ffffff;
    --focus: #7aa2ff; --ok: #4fbf82; --err: #ff7676; --soon: #7aa2ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e8ecf5; --ink-2: #a6afc4; --ink-3: #6f7891;
  --surface: #121b33; --zinc: #0c1328; --zinc-2: #1b2645;
  --rule: #243052; --rule-strong: #34426b;
  --action: #e8ecf5; --action-ink: #0c1328; --action-hover: #ffffff;
  --focus: #7aa2ff; --ok: #4fbf82; --err: #ff7676; --soon: #7aa2ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision;
}
h1, h2, h3 { margin: 0; line-height: 1.05; font-stretch: 118%; letter-spacing: -.015em; text-wrap: balance; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; line-height: 1.2; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--signal-edge); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--surface); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px;
  border-radius: var(--r-s); border: 1.5px solid var(--rule-strong); background: var(--surface); color: var(--ink);
  font: 700 16px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--ink); }
.btn-primary { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.btn-primary:hover { background: var(--action-hover); border-color: var(--action-hover); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: default; }
.text-link { font-weight: 600; font-size: 15px; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-decoration-color: var(--signal-edge); }
.fine { font-size: 14px; color: var(--ink-2); }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 22px var(--font); font-stretch: 125%; text-decoration: none; letter-spacing: -.01em; }
.brand.small { font-size: 17px; }
.mark { position: relative; width: 16px; height: 22px; border-radius: 3px 3px 5px 5px; background: var(--signal); box-shadow: inset 0 0 0 1.5px var(--signal-edge); transform: rotate(-8deg); }
.mark::before { content: ''; position: absolute; top: 4px; left: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--surface); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.top-row { display: flex; align-items: center; gap: 32px; min-height: 68px; }
.links { display: flex; gap: 24px; }
.links a { font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.links a:hover { color: var(--ink); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }

/* Hero */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(48px, 7.4vw, 96px); font-weight: 800; font-stretch: 125%; line-height: .95; letter-spacing: -.025em; max-width: 9ch; }
.lead { margin-top: 28px; font-size: 19px; color: var(--ink-2); max-width: 56ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .fine { margin-top: 16px; }

.hero-art { position: relative; min-height: 560px; }
.phone {
  position: absolute; right: 0; top: 30px; margin: 0; width: 270px; padding: 10px;
  background: #0c1328; border-radius: 36px; box-shadow: 0 30px 60px -30px rgba(23, 36, 74, .55);
}
.phone img { border-radius: 27px; }
.phone.small { position: static; width: 220px; margin-top: 36px; }
.hang { position: absolute; left: 0; top: -72px; z-index: 2; display: grid; justify-items: center; transform-origin: top center; animation: sway 2.6s ease-out .2s 1 both; }
.string { width: 2px; height: 170px; margin-bottom: -28px; position: relative; z-index: 1; background: var(--rule-strong); }
.tag-big {
  position: relative; display: grid; gap: 6px; justify-items: start; width: 224px; padding: 52px 22px 22px;
  background: var(--signal); color: var(--signal-ink); border-radius: 16px 16px 20px 20px;
  box-shadow: inset 0 0 0 2px var(--signal-edge), 0 24px 40px -24px rgba(23, 36, 74, .5); transform: rotate(-6deg);
}
.hole { position: absolute; top: 16px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--signal-edge); }
.tag-code { font: 800 18px var(--font); font-stretch: 125%; letter-spacing: .01em; white-space: nowrap; }
.tag-what { font-size: 13px; font-weight: 600; opacity: .8; }
.tag-bars { display: grid; gap: 6px; width: 100%; margin-top: 14px; }
.tag-bars i { height: 7px; border-radius: 4px; background: var(--signal-ink); opacity: .85; }
.tag-bars i:nth-child(2) { width: 70%; } .tag-bars i:nth-child(3) { width: 85%; }
@keyframes sway { 0% { transform: rotate(6deg); } 40% { transform: rotate(-3.5deg); } 70% { transform: rotate(1.5deg); } 100% { transform: rotate(0); } }

/* Sections */
.band { background: var(--zinc); padding: 96px 0; }
.features, .pricing { padding: 96px 0; }
.section-lead { margin-top: 16px; color: var(--ink-2); font-size: 18px; max-width: 60ch; }

.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: none; }
.steps li { display: grid; gap: 12px; align-content: start; padding-top: 20px; border-top: 2px solid var(--ink); }
.step-n { font: 800 44px/1 var(--font); font-stretch: 125%; }
.steps p { color: var(--ink-2); }

.browser { margin: 48px 0 0; border: 1px solid var(--rule); border-radius: var(--r-l); overflow: hidden; box-shadow: 0 40px 80px -50px rgba(23, 36, 74, .5); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--zinc); border-bottom: 1px solid var(--rule); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--rule-strong); }
.browser-bar span { margin-left: 14px; font-size: 13px; color: var(--ink-2); }
.feature-list { margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; }
.feature-list div { display: grid; gap: 6px; align-content: start; }
.feature-list dt { font-weight: 700; font-size: 18px; }
.feature-list dd { margin: 0; color: var(--ink-2); font-size: 16px; }

.modules { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.modules li { display: grid; gap: 10px; align-content: start; padding: 24px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-m); }
.modules li:first-child { border-color: var(--ink); box-shadow: inset 0 4px 0 var(--signal); }
.modules p { color: var(--ink-2); font-size: 16px; }
.chip { justify-self: start; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.chip.now { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.chip.soon { color: var(--soon); background: color-mix(in srgb, var(--soon) 12%, transparent); }

.pricing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; align-items: start; }
.price-card { display: grid; gap: 16px; padding: 32px; border: 1.5px solid var(--ink); border-radius: var(--r-m); }
.price { font-size: 18px; font-weight: 600; color: var(--ink-2); }
.price span { font: 800 64px/1 var(--font); font-stretch: 125%; color: var(--ink); margin-right: 6px; }
.price-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.price-card li { padding-left: 26px; position: relative; }
.price-card li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.price-card .btn { justify-self: start; margin-top: 4px; }

.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
.faq { display: grid; }
.faq details { border-top: 1px solid var(--rule-strong); }
.faq details:last-child { border-bottom: 1px solid var(--rule-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 28px; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 40px 22px 0; color: var(--ink-2); max-width: 62ch; }

.demo { padding: 96px 0; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.demo-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; padding: 32px; background: var(--zinc); border-radius: var(--r-m); }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0 12px; border: 1.5px solid var(--rule-strong); border-radius: var(--r-s);
  background: var(--surface); color: var(--ink); font: 400 16px var(--font);
}
.field textarea { padding: 12px; resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 55%, transparent); }
.field .bad { border-color: var(--err); }
.wide { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-msg { padding: 12px 14px; border-radius: var(--r-s); font-size: 15px; font-weight: 600; }
.form-msg.ok { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.form-msg.err { background: color-mix(in srgb, var(--err) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--err) 35%, transparent); }

.foot { border-top: 1px solid var(--rule); padding: 32px 0 48px; font-size: 14px; color: var(--ink-2); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.foot .brand { color: var(--ink); }
.foot-row span:last-child { margin-left: auto; }

@media (max-width: 960px) {
  .links { display: none; }
  .hero { padding: 40px 0 64px; }
  .hero-grid, .pricing-grid, .faq-wrap, .demo-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { min-height: 0; height: 420px; max-width: 420px; }
  .phone { width: 210px; top: 10px; }
  .hang { left: 10px; top: -10px; }
  .string { height: 90px; }
  .tag-big { width: 190px; padding: 46px 16px 18px; }
  .tag-code { font-size: 15px; }
  .steps, .feature-list, .modules { grid-template-columns: 1fr; gap: 28px; }
  .band, .features, .pricing, .demo { padding: 64px 0; }
  .phone.small { display: none; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .top-actions .text-link { display: none; }
  .lead { font-size: 17px; }
  .cta .btn { flex: 1 1 100%; }
  .demo-form { grid-template-columns: 1fr; padding: 20px; }
  .hero-art { height: 380px; }
  .phone { width: 180px; }
  .tag-big { width: 168px; }
  .tag-code { font-size: 13px; }
  .foot-row span:last-child { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
