/* 1Mail landing — marketing/01-landing-desktop + 02-landing-mobile */
body { background: var(--paper); }
.wrap { width: min(1312px, calc(100% - 48px)); margin: 0 auto; }

/* Header */
.top { height: 100px; display: flex; align-items: center; }
.top .wrap { display: flex; align-items: center; gap: 24px; }
.top .brand b { font-size: 34px; }
.top .brand img { width: 38px; height: 38px; }
.menu { display: flex; gap: 34px; margin: 0 auto; }
.menu a, .login { font-size: 14px; text-decoration: none; padding: 10px 4px; }
.menu a:hover, .login:hover { color: var(--action); }
.login { font-weight: 700; margin-right: 18px; }
.top .btn { height: 42px; padding: 0 16px; font-size: 13px; }
.burger { display: none; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); align-items: center; gap: 24px; padding: 48px 0 96px; }
.tagline { display: inline-flex; align-items: center; height: 28px; padding: 0 14px; border-radius: 14px; background: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; min-width: 248px; }
.hero h1 { font-size: clamp(56px, 6.25vw, 90px); line-height: 1.12; letter-spacing: -0.02em; margin: 20px 0 22px; }
.hero p.lead { font-size: 23px; line-height: 34px; color: var(--muted); max-width: 520px; }
.hero .ctas { display: flex; align-items: center; gap: 18px; margin-top: 68px; }
.hero .ctas .btn-primary { height: 42px; padding: 0 22px; font-size: 13px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; text-decoration: none; height: 42px; padding: 0 6px; }
.link-arrow:hover { color: var(--action); }
.art { position: relative; }
.art img { width: 100%; max-width: 560px; margin-left: auto; }

/* Product preview */
.preview { background: #fff; border-radius: 24px; padding: 4px 4px 0; overflow: hidden; }
.preview svg { width: 100%; height: auto; display: block; border-radius: 20px 20px 0 0; }

/* Sections */
section { padding: 96px 0 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.sec-head h2 { font-size: 34px; line-height: 1.15; max-width: 620px; }
.sec-head p { color: var(--muted); font-size: 16px; max-width: 420px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.feature { padding: 28px 28px 8px 0; display: grid; gap: 12px; align-content: start; }
.feature + .feature { padding-left: 28px; border-left: 1px solid var(--border); }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--action); }
.feature h3 { font-size: 18px; }
.feature p { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Address finder */
.finder { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; background: #fff; border-radius: 24px; padding: 56px; }
.finder h2 { font-size: 44px; line-height: 1.1; }
.finder > div > p { color: var(--muted); font-size: 17px; margin-top: 16px; max-width: 440px; }
.addr { display: flex; align-items: stretch; height: 60px; border: 1px solid var(--border); border-radius: 14px; background: var(--paper); overflow: hidden; }
.addr:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,127,118,.14); }
.addr input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 0 0 20px; font-size: 20px; font-weight: 700; outline: none; }
.addr span { display: grid; place-items: center; padding: 0 16px 0 2px; font-size: 20px; color: var(--muted); }
.addr .btn { height: auto; border-radius: 0; padding: 0 24px; }
.result { min-height: 52px; margin-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.result .ok { color: var(--teal); font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.result .no { color: var(--action); }

/* Business band */
.biz { background: var(--ink); color: #fff; border-radius: 24px; padding: 56px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; }
.biz h2 { font-size: 44px; line-height: 1.1; }
.biz .sub { color: #D1DADD; font-size: 17px; margin-top: 14px; }
.biz ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.biz li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid #31424A; }
.biz li:first-child { border-top: 0; padding-top: 0; }
.biz li b { display: block; font-size: 16px; margin-bottom: 4px; }
.biz li span { color: var(--on-ink-muted); font-size: 14px; }
.biz li .icon { color: var(--coral); }
.biz .btn-primary { margin-top: 36px; }

/* Footer */
footer { padding: 96px 0 48px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 28px; }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
footer a, footer small { font-size: 13px; color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Tablet */
@media (max-width: 1100px) {
  .features { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(3) { padding-left: 0; border-left: 0; }
  .feature:nth-child(n+3) { border-top: 1px solid var(--border); }
  .finder, .biz { grid-template-columns: 1fr; padding: 40px; }
}

/* Mobile (02-landing-mobile, 390) */
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .top { height: 88px; }
  .top .brand b { font-size: 29px; } .top .brand img { width: 32px; height: 32px; }
  .menu, .login, .top .btn { display: none; }
  .burger { display: inline-grid; margin-left: auto; }
  .top.open .menu { display: grid; position: absolute; top: 80px; left: 20px; right: 20px; background: #fff; border-radius: 18px; padding: 12px; gap: 0; z-index: 10; box-shadow: 0 20px 50px rgba(24,37,43,.15); }
  .top.open .menu a { padding: 14px 12px; font-size: 16px; }
  .hero { grid-template-columns: 1fr; padding: 18px 0 40px; gap: 32px; }
  .tagline { min-width: 243px; }
  .hero h1 { font-size: 57px; line-height: 68px; margin: 18px 0 16px; }
  .hero p.lead { font-size: 17px; line-height: 27px; }
  .hero .ctas { margin-top: 48px; flex-direction: column; align-items: stretch; }
  .hero .ctas .link-arrow { justify-content: center; }
  .sec-head { flex-direction: column; align-items: start; }
  .sec-head h2 { font-size: 35px; }
  .features { grid-template-columns: 1fr; }
  .feature, .feature + .feature { padding: 24px 0; border-left: 0; border-top: 1px solid var(--border); }
  .finder, .biz { padding: 28px 22px; border-radius: 17px; gap: 28px; }
  .finder h2, .biz h2 { font-size: 32px; }
  .addr { height: 54px; } .addr input, .addr span { font-size: 17px; } .addr .btn { padding: 0 16px; }
  .preview { border-radius: 17px; }
  section { padding-top: 72px; }
}

/* ---------- UX upgrade ---------- */
.top { position: sticky; top: 0; z-index: 20; transition: background var(--t-default) var(--ease), box-shadow var(--t-default) var(--ease), height var(--t-default) var(--ease); }
.top.scrolled { background: rgba(245,243,238,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--border); height: 76px; }
section, [id] { scroll-margin-top: 92px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.m-only { display: none; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plan { background: #fff; border-radius: 24px; padding: 40px; display: grid; gap: 18px; align-content: start; }
.plan.dark { background: var(--ink); color: #fff; }
.plan-top { display: flex; align-items: center; gap: 14px; }
.plan-top h3 { font-size: 26px; }
.plan-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--lime); color: var(--ink); display: grid; place-items: center; }
.plan.dark .plan-ico { background: #24343B; color: var(--coral); }
.plan-lead { font-size: 16px; color: var(--muted); }
.plan.dark .plan-lead { color: #D1DADD; }
.plan ul { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.plan li .icon { color: var(--teal); flex: none; }
.plan.dark li .icon { color: #8FD7C9; }
.plan .btn { justify-self: start; }

.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq h2 { font-size: 34px; line-height: 1.15; }
.faq > div > p { color: var(--muted); margin-top: 14px; font-size: 15px; }
.faq a { color: var(--action); font-weight: 700; text-decoration: none; }

@media (max-width: 1100px) { .plans, .faq { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 760px) {
  .top.scrolled { height: 72px; }
  .top.open .menu { gap: 2px; }
  .top.open .m-only { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 2px 2px; }
  .top.open .m-ctas .btn { display: inline-flex; height: 46px; }
  .plan { padding: 26px 22px; border-radius: 17px; }
  .plan-top h3 { font-size: 22px; }
  .om-acc summary { font-size: 16px; }
  .om-acc .a { padding-right: 0; }
}

/* ===== Direction C alignment ===== */
.preview { padding: 10px; border-radius: 28px; background: #fff; box-shadow: 0 30px 80px rgba(24,37,43,.10); }
.preview img { width: 100%; height: auto; display: block; border-radius: 20px; }
.btn { border-radius: 14px; }
.top .btn { border-radius: 21px; padding: 0 18px; }
.hero .ctas .btn-primary { height: 50px; padding: 0 26px; font-size: 14px; border-radius: 16px; box-shadow: 0 8px 20px rgba(194,62,44,.22); }
.feature .ico { box-shadow: 0 1px 0 #E6E9E7; }
.finder, .plan, .biz { border-radius: 28px; }
.finder { box-shadow: 0 1px 0 #E6E9E7; }
.addr { border-radius: 30px; height: 62px; background: var(--paper); }
.addr .btn { border-radius: 0 30px 30px 0; }
.tagline { box-shadow: 0 1px 0 #E6E9E7; }
@media (max-width: 760px) { .preview { padding: 6px; border-radius: 20px; } .preview img { border-radius: 14px; } .addr { height: 54px; } }

/* ===== Mobile fixes: nothing may be wider than the screen ===== */
html, body { overflow-x: hidden; }
.finder { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.finder > *, .finder form { min-width: 0; }
.addr input { width: 0; }
@media (max-width: 900px) {
  .finder { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .finder { padding: 26px 20px 22px; gap: 18px; }
  .finder h2 { font-size: 28px; }
  .addr { flex-wrap: wrap; height: auto; border-radius: 18px; overflow: hidden; }
  .addr input { flex: 1 1 auto; height: 54px; padding-left: 16px; font-size: 17px; }
  .addr span { height: 54px; padding: 0 14px 0 2px; font-size: 17px; }
  .addr .btn { flex: 1 0 100%; height: 50px; border-radius: 0; font-size: 14px; }
  .preview { padding: 6px; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  .hero h1 { font-size: 46px; }
  .plans .plan .btn { width: 100%; justify-content: center; }
}
@media (max-width: 560px) { .preview { max-width: 340px; margin-left: auto; margin-right: auto; border-radius: 34px; padding: 8px; } .preview img { border-radius: 27px; } }
