/* Vandtracker / Water Tracker – watertracker.kodeby.dk
   Colours from the app's ocean look. Inter for everything. No JavaScript: the water
   animation is CSS only, and turns off for people who prefer reduced motion. */

@font-face { font-family: "Inter"; src: url("/fonts/inter-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --ocean-1: #0B3D91;
  --ocean-2: #0A6FC2;
  --ocean-3: #1AA3E8;
  --ink: #0D2A4A;
  --muted: #47607C;
  --paper: #F2F7FD;
  --white: #FFFFFF;
  --blue: #0A5FB0;
  --blue-soft: #DCEBFB;
  --line: #D3E2F2;
  --amber: #F2B600;
  --shadow: 0 1px 2px rgba(10, 50, 100, .08), 0 12px 32px rgba(10, 50, 100, .12);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 112.5%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-weight: 600; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.5rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.18; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--blue); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

/* ---------------------------------------------------------------- Top bar */

.topbar { position: relative; z-index: 2; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.1rem; text-decoration: none; color: var(--ink); }
.logo-tile { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, #2D8CE6, #0061A4); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 50, 110, .25); }
.logo-drop { width: 26px; height: 26px; }
.lang { color: var(--blue); text-decoration: none; font-weight: 600; font-size: .9rem; padding: 6px 14px; border: 1px solid var(--line); border-radius: 20px; }
.lang:hover { background: var(--blue-soft); }

/* On the front page the top bar sits on the ocean gradient. */
.topbar-dark { background: var(--ocean-1); }
.topbar-dark .logo { color: var(--white); }
.topbar-dark .lang { color: var(--white); border-color: rgba(255, 255, 255, .4); }
.topbar-dark .lang:hover { background: rgba(255, 255, 255, .12); }

/* ---------------------------------------------------------------- Hero */

.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(170deg, var(--ocean-1) 0%, var(--ocean-2) 60%, var(--ocean-3) 100%);
  padding: 28px 0 110px;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--white); }
.lead { font-size: 1.15rem; margin-top: 20px; max-width: 34em; color: rgba(255, 255, 255, .9); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
.soon { margin-top: 18px; font-size: .9rem; color: rgba(255, 255, 255, .75); }
.hero .text-link { color: var(--white); }

.button {
  display: inline-block;
  background: var(--white);
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 30, 80, .25);
}
.button:hover { background: #EAF4FF; }
.text-link { font-weight: 600; text-underline-offset: 4px; }

.hero-waves { position: absolute; left: 0; bottom: -1px; width: 100%; height: 70px; }
.hero-waves path { fill: var(--paper); }

/* The phone: a small Today screen. */
.phone {
  justify-self: center;
  width: min(330px, 100%);
  padding: 26px 20px 22px;
  border-radius: 36px;
  background: linear-gradient(180deg, #0A3375, #0B5FB0 70%, #1690DA);
  border: 6px solid rgba(255, 255, 255, .18);
  box-shadow: 0 30px 60px rgba(0, 20, 60, .45);
  text-align: center;
}
.phone-date { font-size: .82rem; color: rgba(255, 255, 255, .78); }
.circle { position: relative; width: 210px; height: 210px; margin: 14px auto 10px; }
.water { width: 100%; height: 100%; display: block; }
.glass-fill { fill: rgba(255, 255, 255, .10); }
.glass-rim { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 2; }
.wave-back path { fill: rgba(100, 195, 255, .5); }
.wave-front path { fill: rgba(58, 160, 240, .72); }
.circle-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-shadow: 0 2px 8px rgba(0, 32, 80, .35); }
.circle-text b { font-size: 1.9rem; font-weight: 600; line-height: 1.1; }
.circle-text span { font-size: .78rem; color: rgba(255, 255, 255, .9); }
.phone-left { font-weight: 600; font-size: .9rem; }
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.preset { background: rgba(255, 255, 255, .14); border-radius: 16px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem; color: rgba(255, 255, 255, .8); }
.preset b { font-size: .85rem; color: var(--white); }

/* Water: rises to half once, waves keep moving. */
.level { animation: rise 2.6s cubic-bezier(.2, .7, .2, 1) .3s both; }
.wave { animation: slide 6s linear infinite; }
.wave-front { animation-duration: 4.5s; animation-direction: reverse; }
@keyframes rise { from { transform: translateY(46px); } to { transform: translateY(0); } }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-100px); } }

/* ---------------------------------------------------------------- Feature rows */

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 8px; }
.feature-flip .feature-text { order: 2; }
.feature-text p { color: var(--muted); margin-top: 14px; max-width: 32em; }
.checks { margin-top: 16px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-soft); box-shadow: inset 0 0 0 5px var(--white), inset 0 0 0 9px var(--blue); }

.card { background: var(--white); border-radius: 24px; padding: 22px 24px; box-shadow: var(--shadow); width: 100%; max-width: 440px; justify-self: center; }
.card-title { font-weight: 600; margin-bottom: 12px; }

.goal-rows li { display: flex; justify-content: space-between; padding: 7px 0; color: var(--muted); }
.goal-total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 600; }
.goal-total b { color: var(--blue); font-size: 1.2rem; }

.entries { display: grid; gap: 4px; }
.entry { display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.entry-main { display: flex; flex-direction: column; flex: 1; }
.entry-name { font-weight: 600; }
.entry-sub { font-size: .82rem; color: var(--muted); }
.entry-ml { font-weight: 600; }
.dot { width: 34px; height: 34px; border-radius: 50%; flex: none; position: relative; }
.dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 15px; transform: translate(-50%, -45%) rotate(45deg); background: var(--white); border-radius: 0 50% 50% 50%; }
.dot-water { background: #2196F3; }
.dot-coffee { background: #6D4C41; }
.dot-sparkling { background: #4FC3F7; }
.preset .dot { width: 24px; height: 24px; }
.preset .dot::after { width: 8px; height: 10px; }

/* Reminder notification */
.note { background: var(--white); border-radius: 26px; padding: 18px 22px 12px; box-shadow: 0 18px 44px rgba(10, 40, 90, .22), 0 2px 6px rgba(10, 40, 90, .12); width: 100%; max-width: 420px; justify-self: center; }
.note-head { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); }
.note-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; }
.note-drop { width: 15px; height: 15px; }
.note-title { font-weight: 600; font-size: 1.05rem; margin-top: 10px; }
.note-text { color: var(--muted); font-size: .92rem; }
.note-acts { display: flex; gap: 6px; margin: 10px 0 0 -10px; }
.note-acts span { color: var(--blue); font-weight: 600; font-size: .9rem; padding: 8px 10px; border-radius: 18px; }
.note-acts span:first-child { background: var(--blue-soft); }

/* Week chart */
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; height: 170px; align-items: end; position: relative; }
.bars::before { content: ""; position: absolute; left: 0; right: 0; bottom: calc(22px + (100% - 22px) * 2900 / 3600); border-top: 2px dashed var(--amber); }
.bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.bar { width: 100%; max-width: 30px; border-radius: 6px 6px 3px 3px; background: #9CC8F2; }
.bar-hit { background: var(--blue); }
.bar-day { font-size: .72rem; color: var(--muted); height: 16px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.stat { background: var(--paper); border-radius: 14px; padding: 10px 14px; display: flex; flex-direction: column; }
.stat b { font-size: 1.15rem; }
.stat span { font-size: .8rem; color: var(--muted); }
.h50 { height: calc((100% - 22px) * .50); } .h55 { height: calc((100% - 22px) * .55); }
.h60 { height: calc((100% - 22px) * .60); } .h65 { height: calc((100% - 22px) * .65); }
.h70 { height: calc((100% - 22px) * .70); } .h75 { height: calc((100% - 22px) * .75); }
.h80 { height: calc((100% - 22px) * .80); } .h85 { height: calc((100% - 22px) * .85); }
.h90 { height: calc((100% - 22px) * .90); } .h95 { height: calc((100% - 22px) * .95); }

/* ---------------------------------------------------------------- Privacy, join */

.private { padding-top: 84px; text-align: center; }
.pills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; text-align: left; }
.pills li { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; color: var(--muted); }

.join { margin-top: 84px; background: linear-gradient(160deg, var(--ocean-1), var(--ocean-2) 60%, var(--ocean-3)); color: var(--white); }
.join-inner { display: flex; align-items: center; gap: 30px; padding-top: 56px; padding-bottom: 56px; }
.join h2 { color: var(--white); }
.join p { margin-top: 12px; max-width: 38em; color: rgba(255, 255, 255, .9); }
.join .button { margin-top: 8px; }
.join-tile { flex: none; width: 96px; height: 96px; border-radius: 26px; background: linear-gradient(135deg, #2D8CE6, #0061A4); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0, 20, 60, .35); }
.join-drop { width: 62px; height: 62px; }

/* ---------------------------------------------------------------- Footer */

.foot { background: #0A2A55; color: rgba(255, 255, 255, .78); padding: 34px 0 40px; font-size: .88rem; }
.disclaimer { max-width: 52em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }
.foot-links a { color: var(--white); }
.made { margin-top: 16px; color: rgba(255, 255, 255, .6); }

/* ---------------------------------------------------------------- Privacy pages */

.doc { padding-top: 32px; padding-bottom: 64px; }
.prose { max-width: 44em; background: var(--white); border-radius: 24px; padding: 28px clamp(20px, 4vw, 44px) 32px; box-shadow: var(--shadow); }
.prose h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.3rem); margin-bottom: 10px; }
.prose h2 { font-size: 1.2rem; margin-top: 28px; }
.prose p, .prose li { color: var(--muted); }
.prose p { margin-top: 10px; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-top: 10px; }
.prose li { margin-top: 4px; }
.prose strong { color: var(--ink); }
.site-note { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 28px !important; }

/* ---------------------------------------------------------------- Small screens */

@media (max-width: 860px) {
  .hero-inner, .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature-flip .feature-text { order: 0; }
  .hero { padding-bottom: 90px; }
  .feature { padding-top: 56px; }
  .pills { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .join-inner { flex-direction: column; align-items: flex-start; }
  .card, .note { padding-left: 18px; padding-right: 18px; }
  .circle { width: 180px; height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  .level, .wave { animation: none; }
}
