/* app.dipnot.app / get.dipnot.app — shared look for the three static
   pages (index, article, 404). Mirrors the dipnot.app landing v2
   ("Dalış": canon OKLCH tokens, liquid glass over a still ocean) so the
   hand-off from the website to the app feels like one product. Styles
   only: the pages' scripts and ids are unchanged.

   Follows the visitor's system theme (no toggle on these pages). */

/* Inter (SIL OFL 1.1, fonts/OFL.txt), self-hosted: variable 400–700,
   latin + latin-ext (Turkish ğ ş ı İ). No Google Fonts request. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens (same values as dipnot.app css/styles.css) ---------------- */

:root {
  /* why hex: same colours as canon (product-design/color.md, single Dipnot
     Teal 2026-10-12), but hex also renders in browsers without oklch(). */
  --teal: #018095; /* oklch(0.552 0.097 214.5) */
  --teal-bright: #6ad0e3; /* oklch(0.803 0.098 211.3) */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  color-scheme: light;
  --fg: oklch(0.15 0 0);
  --fg-muted: oklch(0.42 0.015 230);
  --fg-subtle: oklch(0.52 0.01 230);
  --accent-text: oklch(0.45 0.07 212);
  --water-surface: oklch(0.97 0.025 205);
  --water-mid: oklch(0.9 0.045 210);
  --water-deep: oklch(0.8 0.06 215);
  --light: oklch(1 0 0 / 0.85);
  --glass-bg: oklch(1 0 0 / 0.5);
  --glass-bg-strong: oklch(1 0 0 / 0.62);
  --glass-solid: oklch(0.99 0.005 210);
  --glass-rim: oklch(1 0 0 / 0.95);
  --glass-rim-low: oklch(0.55 0.05 215 / 0.18);
  --glass-edge: oklch(1 0 0 / 0.65);
  --glass-shadow:
    0 1px 2px oklch(0.3 0.05 220 / 0.06),
    0 12px 40px -12px oklch(0.3 0.06 220 / 0.22);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --fg: oklch(0.98 0 0);
    --fg-muted: oklch(0.78 0.015 220);
    --fg-subtle: oklch(0.68 0.01 220);
    --accent-text: var(--teal-bright);
    --water-surface: oklch(0.3 0.055 215);
    --water-mid: oklch(0.2 0.035 225);
    --water-deep: oklch(0.14 0.012 250);
    --light: oklch(0.85 0.09 205 / 0.35);
    --glass-bg: oklch(0.32 0.03 220 / 0.32);
    --glass-bg-strong: oklch(0.24 0.025 225 / 0.62);
    --glass-solid: oklch(0.2 0.015 240);
    --glass-rim: oklch(1 0 0 / 0.22);
    --glass-rim-low: oklch(0 0 0 / 0.35);
    --glass-edge: oklch(1 0 0 / 0.14);
    --glass-shadow:
      0 1px 2px oklch(0 0 0 / 0.3), 0 18px 50px -14px oklch(0 0 0 / 0.6);
  }
}

/* ---- Base -------------------------------------------------------------- */

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

/* The store buttons start `hidden` and the script reveals the right
   platform's; `.btn` sets a display that would beat `hidden`. */
[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--water-mid);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem;
  font: 400 1rem/1.5 var(--font);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

/* ---- Ocean: still gradient, slow light rays, two drifting glows -------- */

.ocean {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    var(--water-surface) 0%,
    var(--water-mid) 55%,
    var(--water-deep) 100%
  );
}

.ocean__rays {
  position: absolute;
  inset: -20% -10% auto;
  height: 110%;
  opacity: 0.75;
  background: repeating-conic-gradient(
    from 172deg at 50% -8%,
    transparent 0deg,
    var(--light) 1.2deg,
    transparent 3.4deg,
    transparent 8deg
  );
  -webkit-mask-image: radial-gradient(
    75% 60% at 50% 0%,
    #000 0%,
    transparent 75%
  );
  mask-image: radial-gradient(75% 60% at 50% 0%, #000 0%, transparent 75%);
  transform-origin: 50% 0%;
  animation: rays 24s ease-in-out infinite alternate;
}

.ocean__glow {
  position: absolute;
  width: 52vmax;
  height: 52vmax;
  border-radius: 50%;
  opacity: 0.45;
  background: radial-gradient(
    closest-side,
    color-mix(in oklch, var(--teal-bright) 32%, transparent),
    transparent
  );
}
.ocean__glow--a {
  top: -20vmax;
  left: -14vmax;
  animation: drift-a 34s ease-in-out infinite alternate;
}
.ocean__glow--b {
  bottom: -26vmax;
  right: -22vmax;
  background: radial-gradient(
    closest-side,
    color-mix(in oklch, var(--teal) 35%, transparent),
    transparent
  );
  animation: drift-b 40s ease-in-out infinite alternate;
}

@keyframes rays {
  from {
    transform: rotate(-2deg) scaleX(1.04);
  }
  to {
    transform: rotate(2deg) scaleX(0.96);
  }
}
@keyframes drift-a {
  to {
    transform: translate3d(12vw, 8vh, 0) scale(1.1);
  }
}
@keyframes drift-b {
  to {
    transform: translate3d(-14vw, -10vh, 0) scale(0.92);
  }
}

/* ---- Liquid glass ------------------------------------------------------ */

.glass {
  position: relative;
  isolation: isolate;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow:
    inset 0 1px 0 0 var(--glass-rim),
    inset 0 -1px 0 0 var(--glass-rim-low),
    var(--glass-shadow);
}

/* Hairline gradient edge, brighter where the light hits */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    145deg,
    var(--glass-rim) 0%,
    var(--glass-edge) 30%,
    transparent 55%,
    var(--glass-edge) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  pointer-events: none;
}

@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  .glass {
    background: var(--glass-solid);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .glass {
    background: var(--glass-solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ---- Card -------------------------------------------------------------- */

.card {
  width: 100%;
  max-width: 26rem;
  padding: 2.5rem 1.75rem 2rem;
  border-radius: 2rem;
  background: var(--glass-bg-strong);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 700ms var(--ease) both;
}

/* The app icon as on a home screen: the composed teal-on-Sky-Captain
   tile (the app-icon master), iOS-style corners. Nothing on the mark. */
.app-icon {
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 1.5rem;
  border-radius: 22.5%;
  box-shadow:
    0 0 0 1px oklch(1 0 0 / 0.08),
    0 12px 28px -10px oklch(0.14 0.02 250 / 0.5);
}

.card h1 {
  font-size: clamp(1.75rem, 4vw + 1rem, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.card .tagline,
.card .msg {
  max-width: 21rem;
  margin-top: 0.75rem;
  color: var(--fg-muted);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.actions {
  width: 100%;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

/* ---- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 17rem;
  min-height: 3.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font: 600 1rem/1 var(--font);
  color: var(--fg);
  text-decoration: none;
  transition:
    transform 200ms var(--ease),
    box-shadow 200ms var(--ease);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
.btn:focus-visible,
.link:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
}

/* Store pill: glyph + two-line label, as on dipnot.app */
.btn--store {
  justify-content: flex-start;
  padding-left: 1.5rem;
  text-align: left;
}
.store-icon {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
}
.store-label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  line-height: 1;
}
.store-label small {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.store-label span {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Primary: the canon teal gradient of dipnot.app's buttons */
.btn--primary {
  color: oklch(0.99 0 0);
  background: linear-gradient(
    180deg,
    oklch(0.6 0.085 208) 0%,
    oklch(0.47 0.075 212) 100%
  );
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.35),
    inset 0 -1px 0 oklch(0 0 0 / 0.2),
    0 2px 6px -2px color-mix(in oklch, var(--teal) 40%, transparent);
}
.btn--primary:hover {
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.4),
    inset 0 -1px 0 oklch(0 0 0 / 0.2),
    0 4px 12px -4px color-mix(in oklch, var(--teal) 45%, transparent);
}

/* Quiet text link back to the website */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  color: var(--accent-text);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}
.link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer {
  margin-top: 1.75rem;
  font-size: 0.8125rem;
  color: var(--fg-subtle);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ocean__rays,
  .ocean__glow,
  .card {
    animation: none;
  }
  .btn,
  .btn:hover,
  .btn:active {
    transition: none;
    transform: none;
  }
}
