/* Tough Climber website. Brand colors from the "Contour" logo kit. */
:root {
  --navy: #1d2430;
  --ink: #121822;
  --glacier: #1f8ee0;
  --glacier-dark: #1672b8;
  --bg: #ffffff;
  --soft: #f4f6f9;
  --line: #e2e7ee;
  --text: #1d2430;
  --muted: #5b6578;
  --radius: 18px;
  --wrap: 1120px;
  --head: 'Montserrat', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--glacier-dark); }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  font: 600 .78rem var(--head);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--glacier);
  margin-bottom: .8em;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.section { padding: 80px 0; }
.section.soft { background: var(--soft); }

/* ---------- Header and burger menu ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo img { height: 34px; width: auto; }
.burger {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px 8px 14px; cursor: pointer;
  font: 600 .9rem var(--head); color: var(--navy);
}
.burger:hover { border-color: var(--navy); }
.burger .bars { width: 18px; height: 12px; position: relative; }
.burger .bars span {
  position: absolute; left: 0; right: 0; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .25s, opacity .2s, top .25s;
}
.burger .bars span:nth-child(1) { top: 0; }
.burger .bars span:nth-child(2) { top: 5px; }
.burger .bars span:nth-child(3) { top: 10px; }
.menu-open .burger .bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-open .burger .bars span:nth-child(2) { opacity: 0; }
.menu-open .burger .bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(18,24,34,.25);
  display: none;
}
.menu-open .menu { display: block; }
.menu .wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; padding-top: 28px; padding-bottom: 32px; height: auto; align-items: start; }
.menu h4 { font: 600 .75rem var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.menu-app {
  display: flex; align-items: center; gap: 14px; padding: 12px; margin: 0 -12px;
  border-radius: 14px; text-decoration: none; color: var(--text);
}
.menu-app:hover { background: var(--soft); }
.menu-app img { width: 52px; height: 52px; border-radius: 12px; }
.menu-app b { display: block; font-family: var(--head); color: var(--ink); }
.menu-app span { font-size: .9rem; color: var(--muted); }
.menu-app.soon { opacity: .55; pointer-events: none; }
.menu-app .ph { width: 52px; height: 52px; border-radius: 12px; border: 2px dashed var(--line); }
.menu-links a { display: block; padding: 6px 0; font: 600 1.05rem var(--head); color: var(--ink); text-decoration: none; }
.menu-links a:hover { color: var(--glacier); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font: 600 .95rem var(--head); text-decoration: none;
  border: 1.5px solid transparent; transition: background .15s, border-color .15s;
}
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--ink); }
.btn.ghost { border-color: var(--line); color: var(--navy); }
.btn.ghost:hover { border-color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 104px; }
.hero .contours { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero .contours svg { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: max(100%, 900px); max-width: none; height: auto; }
.hero h1 span { color: var(--glacier); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.hero-phone { justify-self: center; width: 280px; transform: rotate(4deg); transition: transform .3s; }
.hero-phone:hover { transform: rotate(2deg) translateY(-4px); }
.hero-phone img {
  width: 100%; border-radius: 40px; border: 8px solid var(--ink);
  box-shadow: 0 40px 70px -30px rgba(18,24,34,.55);
}
.hero .lead { margin-bottom: 32px; }

/* ---------- App cards ---------- */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 36px; }
.app-card {
  display: flex; flex-direction: column; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; text-decoration: none; color: var(--text);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
a.app-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -22px rgba(18,24,34,.35); border-color: #cfd6e1; }
.app-card .top { display: flex; align-items: center; gap: 16px; }
.app-card img { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.4); }
.app-card h3 { margin: 0; font-size: 1.3rem; }
.app-card .tag { font-size: .9rem; color: var(--muted); }
.app-card p { color: var(--muted); margin: 0; }
.app-card .more { font: 600 .9rem var(--head); color: var(--glacier-dark); margin-top: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.app-card.placeholder { border-style: dashed; background: transparent; justify-content: center; align-items: center; text-align: center; min-height: 220px; color: var(--muted); }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 36px; }
.pillar .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(31,142,224,.1); color: var(--glacier); margin-bottom: 14px;
}
.pillar p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c3cad6; padding: 48px 0 36px; font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.site-footer img { height: 30px; width: auto; margin-bottom: 12px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: flex-start; }
.site-footer .legal { width: 100%; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; color: #8e98aa; }

/* ---------- App page (store-style) ---------- */
.app-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.app-hero .wrap { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.app-icon { width: 148px; height: 148px; border-radius: 34px; box-shadow: 0 16px 36px -16px rgba(0,0,0,.5); }
.app-hero h1 { margin-bottom: .15em; }
.app-hero .subtitle { font-size: 1.2rem; color: var(--muted); margin-bottom: 4px; }
.app-hero .dev { font-weight: 600; margin-bottom: 20px; }
.app-hero .dev a { color: var(--glacier-dark); text-decoration: none; }

.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; text-decoration: none;
  border-radius: 12px; padding: 9px 18px 9px 14px; min-width: 180px;
  transition: background .15s;
}
.store-btn:hover { background: #222; }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn small { display: block; font-size: .68rem; line-height: 1.1; opacity: .85; }
.store-btn b { display: block; font: 600 1.1rem/1.15 var(--body); }

.info-strip { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.info-strip > div { flex: 1 1 140px; padding: 18px 12px; text-align: center; border-right: 1px solid var(--line); }
.info-strip > div:last-child { border-right: 0; }
.info-strip small { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.info-strip b { display: block; font: 700 1.25rem var(--head); color: var(--ink); margin: 2px 0; }
.info-strip span { font-size: .85rem; color: var(--muted); }

.shots-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.shots-nav { display: flex; gap: 8px; }
.shots-nav button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  cursor: pointer; font-size: 1.1rem; color: var(--navy);
}
.shots-nav button:hover { border-color: var(--navy); }
.shots {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 20px 24px; margin: 16px -20px 0; scrollbar-width: thin;
}
.shots figure { margin: 0; flex: none; scroll-snap-align: start; width: 250px; }
.shots img {
  width: 100%; aspect-ratio: 390 / 874; object-fit: cover;
  border-radius: 30px; background: var(--ink);
  border: 6px solid var(--ink); box-shadow: 0 18px 36px -20px rgba(0,0,0,.6);
}
.shots figcaption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 10px; }

.app-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }
.feature-list { list-style: none; padding: 0; margin: 0 0 28px; }
.feature-list li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.feature-list li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--glacier); margin-top: .6em; }
.feature-list.pro li::before { background: #e4a11b; }
.pro-tag { font: 700 .7rem var(--head); letter-spacing: .1em; background: #ffcf5c; color: #3a2a00; padding: 3px 8px; border-radius: 6px; vertical-align: middle; margin-left: 6px; }

.info-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.info-table th, .info-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { color: var(--muted); font-weight: 500; width: 40%; padding-right: 12px; }
.note {
  background: #fff7e6; border: 1px solid #f3dca8; border-radius: 14px;
  padding: 16px 18px; font-size: .92rem; color: #5c4510; margin-top: 28px;
}
.side-links { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }

.draft-banner {
  background: var(--glacier); color: #fff; text-align: center; font-size: .85rem; font-weight: 600; padding: 6px 12px;
}

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; }
  .menu .wrap { grid-template-columns: 1fr; gap: 20px; }
  .app-hero .wrap { grid-template-columns: 1fr; gap: 20px; text-align: left; }
  .app-icon { width: 108px; height: 108px; border-radius: 25px; }
  .app-body { grid-template-columns: 1fr; gap: 24px; }
  .shots figure { width: 210px; }
  .shots-nav { display: none; }
  .info-strip > div { flex-basis: 50%; border-bottom: 1px solid var(--line); }
  .info-strip > div:nth-child(2n) { border-right: 0; }
  .logo img { height: 28px; }
  .burger .label { display: none; }
  .burger { padding: 10px 12px; }
}

/* ===== v04 additions: coming-soon badge, inner pages, contact form ===== */
.mock-banner { background: var(--glacier); color: #fff; text-align: center; font-size: .85rem; font-weight: 600; padding: 6px 12px; }
.badge-soon { display: inline-block; font: 700 .7rem var(--head); letter-spacing: .12em; text-transform: uppercase; background: rgba(31,142,224,.12); color: var(--glacier-dark); padding: 4px 10px; border-radius: 999px; }
.hero-phone.static { transform: rotate(4deg); position: relative; pointer-events: none; }
.hero-phone .badge-soon { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); background: #fff; box-shadow: 0 8px 22px -10px rgba(18,24,34,.4); white-space: nowrap; }
.app-card.soon-card .top .ph { width: 72px; height: 72px; border-radius: 17px; flex: none; background: linear-gradient(135deg, #1f8ee0, #1d2430); display: grid; place-items: center; }
.app-card.soon-card .top .ph img { width: 36px; height: 36px; border-radius: 0; box-shadow: none; }
.app-card.soon-card { cursor: default; }
.facts { width: 100%; border-collapse: collapse; margin-top: 8px; }
.facts th, .facts td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { color: var(--muted); font-weight: 500; width: 36%; padding-right: 12px; }

.page-head { padding: 64px 0 36px; border-bottom: 1px solid var(--line); background: var(--soft); }
.page-head h1 { margin-bottom: .25em; }
.page-head .lead { margin: 0; }
.page-body { padding: 56px 0 88px; }
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.9em; font-size: 1.35rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose .updated { color: var(--muted); font-size: .9rem; }
.draft-note { background: #fff7e6; border: 1px solid #f3dca8; border-radius: 14px; padding: 14px 18px; font-size: .9rem; color: #5c4510; margin-bottom: 28px; max-width: 46em; }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-form label { display: block; font: 600 .9rem var(--head); color: var(--ink); margin: 0 0 6px; }
.contact-form .field { margin-bottom: 18px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form select, .contact-form textarea {
  width: 100%; font: 1rem var(--body); color: var(--text); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--glacier); box-shadow: 0 0 0 3px rgba(31,142,224,.15); }
.contact-form .hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-mock { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--soft); max-width: 300px; font-size: .9rem; color: var(--muted); }
.turnstile-mock .box { width: 22px; height: 22px; border: 2px solid #aeb7c5; border-radius: 5px; background: #fff; display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; }
.turnstile-mock.ok .box { background: #1f9d55; border-color: #1f9d55; }
.turnstile-mock small { margin-left: auto; font-size: .65rem; text-align: right; line-height: 1.2; }
.contact-form .btn { border: 0; cursor: pointer; }
.contact-form .fine { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.form-ok { display: none; background: #eaf7ef; border: 1px solid #b9e3c8; color: #14532d; border-radius: 14px; padding: 18px 20px; }
.form-sent .form-ok { display: block; }
.form-sent form { display: none; }
.side-card { background: var(--soft); border-radius: var(--radius); padding: 26px; }
.side-card h3 { margin-bottom: .4em; }
.side-card p, .side-card li { color: var(--muted); }
.side-card ul { padding-left: 1.1em; margin: 0; }
.cta-band { background: var(--soft); border-top: 1px solid var(--line); padding: 56px 0; text-align: center; }
.cta-band p { color: var(--muted); max-width: 34em; margin: 0 auto 20px; }
.site-footer address { font-style: normal; color: #8e98aa; line-height: 1.5; }
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .page-head { padding: 44px 0 28px; }
  .contact-form { padding: 20px; }
}

/* ===== Live contact form states ===== */
.form-err { background: #fdecec; border: 1px solid #f3b9b9; color: #7a1c1c; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-size: .95rem; }
.field-err { color: #b42318; font-size: .85rem; margin-top: 6px; }
.contact-form [aria-invalid="true"] { border-color: #d64545; }
.contact-form .btn[disabled] { opacity: .6; cursor: wait; }
.form-ok:focus { outline: none; }
#count { float: right; }

/* ===== Home hero: the flying phone from the coming-soon page ===== */
.tp-stage { position: relative; height: 560px; justify-self: stretch; pointer-events: none; }
.tp-path { position: absolute; left: 52%; top: 50%; width: 0; height: 0; transform: rotate(-32deg); }
.tp-body { position: absolute; width: var(--w, 230px); aspect-ratio: 390 / 844; left: calc(var(--w, 230px) / -2); top: calc(var(--w, 230px) * -1.08);
  transform: translateX(var(--x, 0px)) rotate(32deg) perspective(1400px) rotateY(-22deg) rotateX(10deg) rotateZ(-16deg); }
.tp-frame { position: absolute; inset: 0; border-radius: calc(var(--w, 230px) * .12); overflow: hidden; background: #0a0f1d; box-shadow: 0 0 0 1.5px #2a3550, 0 0 0 9px #0d121c; }
.tp-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-glare { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 32%, rgba(255,255,255,0) 70%, rgba(255,255,255,.06) 100%); }
.tp-phone { z-index: 3; filter: drop-shadow(0 36px 40px rgba(18,24,34,.35)); }
.tp-ghost { z-index: 2; }
.tp-ghost.g1 { --x: -70px; opacity: .32; }
.tp-ghost.g2 { --x: -140px; opacity: .18; }
.tp-ghost.g3 { --x: -210px; opacity: .08; }
.tp-flyer { position: absolute; inset: 0; animation: tp-fly-in 1.6s cubic-bezier(.2,.8,.2,1) both; }
.tp-hover { position: absolute; inset: 0; animation: tp-hover 3.2s ease-in-out 1.6s infinite; }
.tp-ghost.g1 { animation: tp-trail1 3.2s ease-in-out 1.6s infinite; }
.tp-ghost.g2 { animation: tp-trail2 3.2s ease-in-out 1.6s infinite; }
.tp-ghost.g3 { animation: tp-trail3 3.2s ease-in-out 1.6s infinite; }
@keyframes tp-fly-in { from { transform: translateX(-460px); opacity: 0; } 55% { opacity: 1; } to { transform: none; } }
@keyframes tp-hover { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(26px); } }
@keyframes tp-trail1 { 0%, 100% { --x: -70px; } 50% { --x: -92px; } }
@keyframes tp-trail2 { 0%, 100% { --x: -140px; } 50% { --x: -184px; } }
@keyframes tp-trail3 { 0%, 100% { --x: -210px; } 50% { --x: -276px; } }
@property --x { syntax: '<length>'; inherits: false; initial-value: 0px; }
@media (max-width: 760px) {
  .tp-stage { height: 470px; --w: 170px; }
  .tp-path { left: 58%; top: 52%; }
}

/* Fainter lines on wide screens, fading out under the text on the left. */
@media (min-width: 761px) {
  .hero .contours { opacity: .55; -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 30%, #000 62%); mask-image: linear-gradient(to right, transparent 0%, transparent 30%, #000 62%); }
}
