/* Tuff Tide landing page */

@font-face {
  font-family: "Anta";
  src: url("assets/fonts/Anta-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #000;
  --bg-2: #070707;
  --ink: #F2F4FC;
  --ink-2: #C9CBD3;
  --muted: #8A8B8E;
  --line: #3A3A3A;
  --line-2: #1F1F1F;
  --card-line: #2A2A2A;
  --yellow: #FFD600;
  --red: #FF4245;
  --sans: "Google Sans Flex", "Google Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--yellow); }
a:hover { color: #FFE45C; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Nav */
.nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.brand { display: flex; text-decoration: none; }
.brand-logo { width: 96px; height: auto; }
.nav nav { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; font-size: 16px; font-weight: 500; letter-spacing: -0.31px; }
.nav nav a:not(.btn) { color: var(--ink-2); text-decoration: none; }
.nav nav a:not(.btn):hover { color: var(--ink); }

/* Buttons and forms */
.btn {
  letter-spacing: -0.31px;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px; border-radius: 32px; border: 0;
  background: var(--yellow); color: #000; font: inherit; font-size: 16px; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #FFE45C; color: #000; transform: translateY(-1px); }
.btn-small { min-height: 44px; padding: 0 22px; border-radius: 22px; }

.signup { display: flex; flex-wrap: wrap; gap: 12px; max-width: 34rem; }
.signup input {
  flex: 1 1 240px; min-width: 0; min-height: 56px; padding: 0 22px; border-radius: 32px;
  border: 1.5px solid var(--line); background: #0E0E0E; color: var(--ink); font: inherit; font-size: 16px;
}
.signup input:focus { outline: none; border-color: var(--yellow); }
.signup-note { flex-basis: 100%; min-height: 1.2em; font-size: 15px; color: var(--yellow); }
.signup-center { justify-content: center; width: 100%; }
.signup .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.signup-center .signup-note { text-align: center; }

/* Type */
.eyebrow-plain { font-size: 18px; font-weight: 500; letter-spacing: -0.44px; color: var(--muted); }
.eyebrow {
  font-size: 15px; font-weight: 500; letter-spacing: -0.23px; color: var(--muted);
  border-bottom: 1.5px solid var(--line); padding-bottom: 8px; margin-bottom: 20px; max-width: 280px;
}
h1 { font-weight: 600; font-size: clamp(42px, 5.6vw, 76px); line-height: 1; letter-spacing: -1px; }
h2 { font-weight: 600; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.07px; }
h2.bold { font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.45px; }
.lead { font-size: 22px; line-height: 32px; letter-spacing: -0.36px; color: var(--ink-2); max-width: 34rem; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 88px; }
.hero-copy { flex: 1 1 480px; max-width: 582px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 16px; font-weight: 500; letter-spacing: -0.31px; color: var(--muted); }

.hero-watches { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; align-items: flex-end; }
.watch { margin: 0; will-change: transform; }
.watch-back { width: 46%; max-width: 250px; margin-right: -9%; margin-bottom: 40px; opacity: .9; }
.watch-front { position: relative; width: 58%; max-width: 330px; }
.watch-front > img { width: 100%; height: auto; }

/* Live watch screen, drawn at the design size (208 x 248) and scaled to fit */
.screen {
  position: absolute;
  left: 12.544%; top: 22.045%; width: 72.474%; height: 56.364%;
  border-radius: 23% / 19.4%;
  overflow: hidden; background: #000;
}
.screen-inner {
  position: absolute; left: 0; top: 0; width: 208px; height: 248px;
  transform-origin: 0 0; color: #F2F2F2;
  font-family: -apple-system, "SF Pro Text", system-ui, sans-serif;
}
.screen-frame { position: absolute; inset: 3px; border: 1px solid #7F8082; border-radius: 45px; pointer-events: none; }
.page { position: absolute; inset: 0; transition: opacity .25s ease; }
.page-flash { opacity: 0; }
.flashing .page-flash { opacity: 1; }
.flashing .page-session { opacity: 0; }

.lbl { font-size: 13px; line-height: 14px; letter-spacing: 0.02em; color: #7F8082; font-weight: 500; }

.sys-time { position: absolute; right: 18px; top: 10px; display: flex; align-items: center; gap: 3px; font-size: 16px; font-weight: 600; letter-spacing: 0.02em; }
.sys-time .drop { width: 12px; height: 12px; }
.big-clock { position: absolute; right: 12px; top: 33px; font-family: "Anta", sans-serif; font-size: 52px; line-height: 1; color: var(--yellow); }

.row-mid { position: absolute; left: 4px; top: 88px; width: 196px; height: 64px; }
.session { position: absolute; left: 0; top: 5px; width: 115px; display: flex; flex-direction: column; align-items: flex-end; }
.session-val { font-family: "Anta", sans-serif; font-size: 31px; line-height: 34px; white-space: nowrap; }
.session-val .d { display: inline-block; width: 0.6em; text-align: center; }
.session-val .c { display: inline-block; width: 0.28em; text-align: center; }
.vdiv { position: absolute; left: 118px; top: 2px; width: 4px; height: 58px; border-right: 1px solid #7F8082; border-top: 1px solid #7F8082; border-radius: 0 6px 0 0; }
.waves { position: absolute; left: 124px; top: 0; width: 68px; display: flex; flex-direction: column; align-items: flex-end; }
.waves-val { font-family: "Anta", sans-serif; font-size: 52px; line-height: 50px; white-space: nowrap; transition: opacity .4s ease; }
.waves-val .d { display: inline-block; width: 0.642em; text-align: center; } /* same width as the clock digits above */

.row-low { position: absolute; left: 2px; top: 158px; width: 204px; height: 72px; }
.mode { position: absolute; left: 4px; top: 0; width: 122px; }
.bracket { display: block; padding: 0 0 2px 5px; border-left: 1px solid #7F8082; border-bottom: 1px solid #7F8082; border-bottom-left-radius: 4px; }
.mode .bracket { border-left: 0; border-radius: 0; padding-left: 5px; position: relative; }
.mode .bracket::before { content: ""; position: absolute; left: 0; bottom: -1px; width: 4px; height: 4px; border-left: 1px solid #7F8082; border-bottom: 1px solid #7F8082; border-bottom-left-radius: 4px; }
.mode-grid { display: grid; grid-template-columns: 69px 53px; row-gap: 6px; margin-top: 9px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.mode-grid span { display: flex; align-items: center; gap: 6px; line-height: 14px; }
.mode-grid img { width: 12px; height: 12px; }
.mode-grid .batt { transform: rotate(90deg); }
.rec { color: var(--red); }

.timer { position: absolute; left: 134px; top: 0; width: 66px; height: 72px; }

.dots { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; gap: 5px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #4A4A4A; }
.dots i.on { background: #F2F2F2; }
.unlock { position: absolute; right: -3px; top: 70px; writing-mode: vertical-rl; font-size: 8px; letter-spacing: 0.12em; color: #7F8082; font-weight: 600; }

.flash-top { position: absolute; left: 24px; right: 22px; top: 20px; display: flex; justify-content: space-between; align-items: flex-start; font-size: 16px; font-weight: 600; }
.flash-brand { width: 60px; height: auto; }
.page-flash { display: flex; flex-direction: column; align-items: center; padding-top: 58px; }
.flash-num { font-family: "Anta", sans-serif; font-size: 50px; line-height: 50px; }
.flash-lbl { margin-bottom: 8px; }
.flash-lbl.line { padding: 0 34px 6px; border-bottom: 1px solid #7F8082; margin-bottom: 10px; }
.flash-foot { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 8px; letter-spacing: 0.14em; color: #7F8082; font-weight: 600; }

/* Two buzzes */
.buzz { animation: buzz .5s linear; }
@keyframes buzz {
  0%, 40%, 100% { translate: 0 0; }
  5%, 25% { translate: -2px 0; }
  10%, 30% { translate: 2px 0; }
  15%, 35% { translate: -1px 0; }
  50%, 70% { translate: 0 0; }
  55%, 75%, 90% { translate: -2px 0; }
  60%, 80%, 95% { translate: 2px 0; }
}

/* Sections */
.section { padding-top: 104px; padding-bottom: 104px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split-head { flex: 1 1 320px; min-width: 0; }
.who-grid { flex: 1 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; padding-top: 48px; }
.who-grid > div { display: flex; flex-direction: column; gap: 10px; }
.who-grid p, .card p { font-size: 16px; line-height: 22px; letter-spacing: -0.31px; color: var(--ink-2); }
.card p { max-width: 315px; }

#features h2 { margin-bottom: 48px; max-width: 40rem; padding-top: 20px; }
.split-head h2 { padding-top: 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 16px; padding-bottom: 24px; }
.card-tag { font-size: 14px; font-weight: 600; color: var(--yellow); }
.card h3 { font-size: 21px; letter-spacing: -0.2px; }

.story { background: var(--bg-2); border-top: 1.5px solid var(--line-2); border-bottom: 1.5px solid var(--line-2); }
.story .split { gap: 56px; }
.tuff { margin-top: 24px; font-size: 18px; font-weight: 600; letter-spacing: -0.44px; color: var(--yellow); }
.story-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; padding-top: 24px; font-size: 16px; line-height: 22px; letter-spacing: -0.43px; color: var(--ink-2); }
.story-text .strong { color: var(--ink); font-weight: 600; }

.get { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.get-logo { width: 96px; height: auto; }
.get h2 { font-weight: 600; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.5px; max-width: 48rem; }
.get .lead { max-width: 36rem; }
.reqs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; font-size: 15px; letter-spacing: -0.23px; color: var(--muted); margin-top: 8px; }

.foot { border-top: 1.5px solid var(--line-2); }
.foot-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: flex-end; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .buzz { animation: none; }
  .watch { will-change: auto; }
}

@media (max-width: 640px) {
  .nav nav { gap: 20px; }
  .nav nav a:not(.btn) { display: none; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .lead { font-size: 18px; }
  /* Feature cards wrap like the "Who it's for" items on phones */
  .cards { gap: 32px; }
  .card { padding-bottom: 0; gap: 10px; }
  .card p { max-width: none; }
}
