/* TryTechSafe website — shared styles. Big type, strong contrast, no tiny tap targets:
   the audience is beginners and seniors. Palette and font match the brand kit. */

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/atkinson-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/atkinson-700.woff2') format('woff2');
}

:root {
  --navy: #12355B;
  --navy-2: #1B4F86;
  --deep: #0C2440;
  --green: #1F9D63;
  --green-dark: #17784B;
  --green-soft: #E3F5EC;
  --amber: #FFC14D;
  --amber-soft: #FFEFCC;
  --cream: #FFF8EE;
  --paper: #FFFFFF;
  --ink: #1D2733;
  --muted: #4A5868;
  --line: #E1E7EF;
  --red: #C8382B;
  --radius: 22px;
  --shadow: 0 18px 40px -18px rgba(12, 36, 64, .28);
  --wrap: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 19px;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 4px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 16px; }

h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.22rem; color: var(--muted); max-width: 36em; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-dark); margin-bottom: .8em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn[aria-disabled="true"] { background: #DCE3EB; color: var(--muted); border-color: transparent; cursor: default; transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 248, 238, .94); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(18, 53, 91, .08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 1.45rem; color: var(--navy); }
.brand img { width: 44px; height: 44px; }
.brand b { color: var(--green); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem; }
.nav a:hover { color: var(--green-dark); }
.nav .btn { min-height: 48px; padding: 0 22px; font-size: 1rem; color: #fff; }
.nav .btn { white-space: nowrap; }
@media (max-width: 860px) {
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 480px) {
  .site-header .wrap { padding: 0 16px; min-height: 68px; }
  .brand { font-size: 1.2rem; gap: 10px; }
  .brand img { width: 38px; height: 38px; }
  .nav .btn { min-height: 44px; padding: 0 16px; font-size: .95rem; }
  .wrap { padding: 0 16px; }
}

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.tint { background: var(--paper); }

/* Hero */
.hero { padding: 64px 0 80px; overflow: hidden; position: relative; }
.hero::before { content: ''; position: absolute; right: -220px; top: -260px; width: 760px; height: 760px; border-radius: 50%; background: var(--green-soft); z-index: -1; }
.hero::after { content: ''; position: absolute; left: -260px; bottom: -380px; width: 640px; height: 640px; border-radius: 50%; background: var(--amber-soft); z-index: -1; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--green); }
.badge { display: inline-flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: .95rem; color: var(--navy); margin-bottom: 22px; box-shadow: 0 6px 18px -12px rgba(12, 36, 64, .35); }
.badge i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.reassure { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-weight: 700; font-size: 1rem; }
.reassure li { display: flex; align-items: center; gap: 8px; }
.reassure svg { width: 22px; height: 22px; flex: none; }
.hero-art { position: relative; min-height: 420px; }
.hero-art .laptop { width: 78%; }
.hero-art .phone { position: absolute; right: 0; bottom: -14px; width: 30%; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; max-width: 560px; margin: 8px auto 0; width: 100%; }
}

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.tint .card { background: var(--cream); box-shadow: none; }
.card p:last-child { margin-bottom: 0; }
.icon-dot { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 18px; background: var(--green-soft); }
.icon-dot svg { width: 30px; height: 30px; }
.icon-dot.amber { background: var(--amber-soft); }
.icon-dot.navy { background: #E2EAF4; }

/* Products */
.product { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.product .art { background: linear-gradient(160deg, var(--green-soft), var(--cream)); padding: 34px 34px 10px; display: flex; justify-content: center; align-items: flex-end; min-height: 300px; }
.product .art.amber { background: linear-gradient(160deg, var(--amber-soft), var(--cream)); }
.product .art svg { max-height: 300px; width: auto; }
.product .body { padding: 30px 34px 34px; display: flex; flex-direction: column; flex: 1; }
.product .body .btn { margin-top: auto; align-self: flex-start; }
.product .sub { font-weight: 700; color: var(--green-dark); margin-top: -.3em; }
.ticks { list-style: none; margin: 0 0 26px; padding: 0; }
.ticks li { position: relative; padding-left: 36px; margin-bottom: 10px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .3em; width: 22px; height: 22px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 74px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 30px; width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 1.4rem; display: grid; place-items: center; transform: translateY(22px); }
.step.card { padding-top: 96px; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .art { display: flex; justify-content: center; }
.split .art svg { max-height: 560px; width: auto; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split .art { order: -1; } .split .art svg { max-height: 440px; } }
.signs { list-style: none; padding: 0; margin: 0 0 1.4em; }
.signs li { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.signs b { flex: none; width: 38px; height: 38px; border-radius: 12px; background: #FDECEA; color: var(--red); display: grid; place-items: center; font-size: 1.1rem; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plans .card { padding: 30px 26px; display: flex; flex-direction: column; }
.plans .card .ticks { margin-bottom: 24px; }
.plans .card .btn { margin-top: auto; align-self: stretch; padding: 0 16px; }
.billing { display: inline-flex; gap: 4px; padding: 5px; margin-top: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
.billing button { font: inherit; font-weight: 700; font-size: 1rem; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; color: var(--navy); cursor: pointer; }
.billing button[aria-checked="true"] { background: var(--navy); color: #fff; }
.billing em { font-style: normal; font-size: .85rem; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); }
.billing button[aria-checked="true"] em { background: var(--green); color: #fff; }
.plan h3 { font-size: 1.6rem; }
.plan .price { font-size: 1.05rem; font-weight: 700; color: var(--muted); margin-bottom: 1.2em; }
.plan .amount { margin: 0 0 .2em; color: var(--navy); line-height: 1; }
.plan .amount b { font-size: 3rem; }
.plan .amount span { font-size: 1.15rem; font-weight: 700; color: var(--muted); margin-left: 4px; }
.plan.pro { border: 3px solid var(--green); position: relative; }
.plan.pro .tag { position: absolute; top: -16px; left: 28px; background: var(--green); color: #fff; font-weight: 700; font-size: .85rem; padding: 4px 14px; border-radius: 999px; letter-spacing: .04em; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 14px; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 64px 22px 26px; font-weight: 700; font-size: 1.12rem; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details > div { padding: 0 26px 22px; color: var(--muted); }

/* Final call */
.final { background: var(--navy); color: #E6EEF7; border-radius: 32px; padding: 64px 48px; text-align: center; position: relative; overflow: hidden; }
.final h2 { color: #fff; }
.final p { max-width: 34em; margin-left: auto; margin-right: auto; }
.final .cta-row { justify-content: center; }
.final .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.final .btn-ghost:hover { background: #fff; color: var(--navy); }
@media (max-width: 600px) { .final { padding: 48px 22px; border-radius: 24px; } }

/* Social links */
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.socials a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; font-weight: 700; font-size: .98rem; }
.socials a:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.socials svg { width: 20px; height: 20px; }

/* Footer */
.site-footer { background: var(--deep); color: #C6D3E2; padding: 56px 0 40px; margin-top: 88px; font-size: 1rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer a { color: #fff; }
.site-footer small { display: block; color: #9FB0C4; margin-top: 18px; line-height: 1.5; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 18px 0 0; padding: 0; list-style: none; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Dashboard */
.dash-hero { padding: 56px 0 24px; }
.sim-card { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; }
.sim-card .art { background: linear-gradient(160deg, var(--green-soft), var(--cream)); border-radius: 18px; padding: 22px; display: flex; align-items: center; justify-content: center; height: 220px; }
.sim-card .art.amber { background: linear-gradient(160deg, var(--amber-soft), var(--cream)); }
.sim-card .art svg { max-height: 176px; width: auto; }
.sim-card h2 { font-size: 1.9rem; margin-bottom: .2em; }
.sim-card .url { font-weight: 700; color: var(--muted); font-size: 1rem; margin-bottom: .8em; word-break: break-all; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; border-radius: 999px; padding: 4px 14px; margin-bottom: 14px; }
.status.live { background: var(--green-soft); color: var(--green-dark); }
.status.soon { background: var(--amber-soft); color: #7A5200; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
@media (max-width: 700px) { .sim-card { grid-template-columns: 1fr; } .sim-card .art { height: 200px; } }
.note { background: var(--paper); border: 1px dashed #BFCBD8; border-radius: 18px; padding: 22px 26px; color: var(--muted); }

/* Account page */
.auth-card { max-width: 560px; }
.tabs { display: flex; gap: 6px; padding: 5px; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 26px; }
.tabs button { flex: 1; font: inherit; font-weight: 700; font-size: 1rem; min-height: 48px; border: 0; border-radius: 999px; background: transparent; color: var(--navy); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 8px; font-weight: 700; color: var(--navy); }
.form label small { font-weight: 400; color: var(--muted); }
.form input { font: inherit; font-size: 1.1rem; min-height: 56px; padding: 0 16px; border: 2px solid #C9D3DE; border-radius: 14px; background: #fff; color: var(--ink); }
.form input:focus { border-color: var(--navy-2); outline: 3px solid var(--amber); outline-offset: 1px; }
.form .btn { justify-self: start; }
.form-error { margin: 0; padding: 12px 16px; border-radius: 12px; background: #FDECEA; color: #8F2318; font-weight: 700; }
.fine { font-size: .95rem; color: var(--muted); margin: 0; }
.muted { color: var(--muted); }
.notice { margin: 18px 0 0; padding: 14px 18px; border-radius: 14px; font-weight: 700; max-width: 760px; }
.notice.ok { background: var(--green-soft); color: var(--green-dark); }
.notice.warn { background: var(--amber-soft); color: #7A5200; }
.device h2 { font-size: 1.7rem; margin-bottom: .3em; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0; }
@media (max-width: 760px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: grid; gap: 4px; min-height: 100%; padding: 18px 20px; border: 2px solid var(--line); border-radius: 18px; background: var(--cream); }
.choice b { color: var(--navy); font-size: 1.15rem; }
.choice em { font-style: normal; font-weight: 700; color: var(--muted); }
.choice small { color: var(--green-dark); font-weight: 700; }
.choice input:checked + span { border-color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 2px var(--green) inset; }
.choice input:focus-visible + span { outline: 4px solid var(--amber); outline-offset: 3px; }
.choice.soon { cursor: default; }
.choice.soon span { opacity: .55; }
.choice.soon span::after { content: 'Opening soon'; font-size: .85rem; font-weight: 700; color: #7A5200; }
.sub-list { margin: 0 0 18px; padding-left: 1.2em; }
.sub-list li { margin-bottom: 6px; }

/* Legal page */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose .todo { background: var(--amber-soft); border-radius: 8px; padding: 0 6px; font-weight: 700; color: #7A5200; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
