/* Aklinki website — the apps' sticker look: warm orange, navy ink, soft cards.
   Everything is served from this site; animation is CSS only (plus a few lines
   of script for reveal-on-scroll), so pages stay tiny on slow connections. */
@font-face { font-family: "Baloo 2"; src: url("assets/Baloo2.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("assets/PlusJakartaSans.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --canvas: #FBFCFE; --surface: #FFFFFF; --edge: #EDF1F7;
  --ink: #10233E; --ink-soft: #5F6F82;
  --orange: #F4511E; --orange-soft: #FFF1E8; --amber-top: #FFD166; --amber-bottom: #F4A11E; --amber-ink: #5A3606;
  --halo: rgba(255, 138, 61, 0.30); --dot: rgba(16, 35, 62, 0.10); --panel: #FFF1E8;
  --blue: #1E9BF4; --green: #17A673; --purple: #7C4DFF; --teal: #12A5A5; --amber: #F4A11E;
  --shadow: 0 10px 30px rgba(16, 35, 62, 0.08);
  --shadow-lift: 0 18px 40px rgba(16, 35, 62, 0.14);
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0E1520; --surface: #18202C; --edge: #2A3444;
    --ink: #F3F6FA; --ink-soft: #A3B1C2; --orange-soft: #2A1C14;
    --halo: rgba(244, 81, 30, 0.28); --dot: rgba(255, 255, 255, 0.07); --panel: #161E2A;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35); --shadow-lift: 0 18px 40px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
/* clip, not hidden: the hero glow reaches past the edges, and clip keeps the sticky header working. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(17px, 0.42vw + 12.500px, 21px); line-height: 1.6; overflow-x: clip;
}
a { color: var(--orange); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px;
}
h1, h2, h3 { font-family: "Baloo 2", system-ui, sans-serif; line-height: 1.12; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 5.4rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.9rem); font-weight: 800; }
h3 { font-size: clamp(1.15rem, 1.25vw, 1.7rem); font-weight: 700; }
p { margin: 0; }
.accent { color: var(--orange); }
.soft { color: var(--ink-soft); }
/* Fluid: the page uses the screen it is given (up to very wide monitors), with gutters that grow with it. */
.wrap { width: min(1720px, 100% - clamp(40px, 9vw, 240px)); margin-inline: auto; }
/* Reading pages stay at a comfortable line length, but sit in the same wide frame. */
.narrow { width: min(46rem, 100% - 40px); margin-inline: auto; }

/* Header: a floating pill that stays with you */
.site-header {
  position: sticky; top: 12px; z-index: 10; margin-top: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  /* Grows with the screen, so it never looks like a thin strip on a wide monitor. */
  padding: clamp(8px, 0.7vw, 14px) clamp(10px, 1vw, 20px) clamp(8px, 0.7vw, 14px) clamp(12px, 1.2vw, 24px);
  background: var(--surface); border: 2px solid var(--edge);
  border-radius: 999px; box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: clamp(10px, 0.8vw, 16px); text-decoration: none; color: var(--ink); }
.brand img { width: clamp(38px, 2.8vw, 56px); height: clamp(38px, 2.8vw, 56px); border-radius: 26%; }
.brand span { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: clamp(1.25rem, 1.6vw, 2rem); line-height: 1; }
.nav { display: flex; gap: clamp(2px, 0.5vw, 10px); flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: clamp(0.95rem, 1.05vw, 1.3rem); padding: clamp(7px, 0.6vw, 12px) clamp(12px, 1.1vw, 22px); border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--orange-soft); color: var(--orange); }

/* Hero: words on the left, the real app on the right. One clean halo behind
   the phones — no wide smear — and a faint dot grid for texture. */
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 110px); align-items: center; padding: clamp(48px, 6vw, 110px) 0 clamp(40px, 5vw, 90px); min-height: min(86vh, 980px); }
.hero::before {
  content: ""; position: absolute; z-index: -2; inset: -140px -50vw -40px;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 35%, #000, transparent 75%); mask-image: radial-gradient(60% 70% at 50% 35%, #000, transparent 75%);
}
.hero-copy .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 18px; }
.hero-copy .eyebrow img { width: 34px; height: 34px; border-radius: 9px; }
.hero p.lead { font-size: clamp(1.05rem, 1.25vw, 1.35rem); color: var(--ink-soft); margin-top: 18px; max-width: 34em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; align-items: center; }
.facts { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 34px; padding-top: 22px; border-top: 2px solid var(--edge); }
.facts div { display: grid; }
.facts b { font-family: "Baloo 2", sans-serif; font-size: clamp(1.6rem, 2.2vw, 2.8rem); line-height: 1.1; }
.facts span { color: var(--ink-soft); font-size: clamp(0.9rem, 0.9vw, 1.1rem); }

/* The phones */
.stage { --pw: clamp(250px, 19vw, 400px); position: relative; display: grid; place-items: center; min-height: calc(var(--pw) * 2.200); }
.stage::before { content: ""; position: absolute; z-index: -1; width: calc(var(--pw) * 2.400); height: calc(var(--pw) * 2.400); max-width: 120%; border-radius: 50%; background: radial-gradient(closest-side, var(--halo), transparent); }
.phone { --pw: 268px; width: var(--pw); border-radius: calc(var(--pw) * 0.172); padding: calc(var(--pw) * 0.034); background: #0B0F16; box-shadow: 0 0 0 2px #2A3140, 0 40px 80px rgba(16, 35, 62, 0.28); position: relative; }
.phone::before { content: ""; position: absolute; top: calc(var(--pw) * 0.071); left: 50%; transform: translateX(-50%); width: calc(var(--pw) * 0.313); height: calc(var(--pw) * 0.090); border-radius: 999px; background: #0B0F16; z-index: 2; }
.phone img { display: block; width: 100%; height: auto; border-radius: calc(var(--pw) * 0.142); }
.stage .phone { --pw: inherit; }
.stage .phone.back { position: absolute; transform: translate(calc(var(--pw) * 0.440), calc(var(--pw) * 0.100)) rotate(7deg) scale(0.9); filter: brightness(0.94); }
.stage .phone.front { transform: translate(calc(var(--pw) * -0.220), 0) rotate(-4deg); }
.key {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px;
  border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  font-family: inherit; font-size: 1rem;
}
.key.primary { background: var(--orange); color: #fff; box-shadow: 0 10px 22px rgba(244, 81, 30, 0.32); }
.key.quiet { background: var(--surface); color: var(--ink); border-color: var(--edge); }
.pill { display: inline-block; background: linear-gradient(135deg, var(--amber-top), var(--amber-bottom)); color: var(--amber-ink); font-weight: 800; font-size: 0.8rem; padding: 5px 12px; border-radius: 999px; }

/* Feature rows: a screenshot beside its story, alternating sides */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 110px); align-items: center; padding: clamp(16px, 1.6vw, 30px) 0; }
.row.flip .row-art { order: 2; }
.row-art { display: grid; place-items: center; background: var(--panel); border-radius: 32px; padding: clamp(30px, 3vw, 60px) 20px 0; overflow: hidden; }
.row-art .phone { --pw: clamp(230px, 17vw, 360px); border-radius: calc(var(--pw) * 0.172) calc(var(--pw) * 0.172) 0 0; padding-bottom: 0; margin-bottom: calc(var(--pw) * -0.240); }
.row-art .phone img { border-radius: calc(var(--pw) * 0.142) calc(var(--pw) * 0.142) 0 0; }
.row h2 { margin: 10px 0; }
.row p { color: var(--ink-soft); max-width: 30em; font-size: clamp(1rem, 1.15vw, 1.35rem); }
.row li { font-size: clamp(1rem, 1.05vw, 1.25rem); }
.row ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.row li { padding-left: 28px; position: relative; }
.row li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 100 16A8 8 0 008 0zm3.7 6.3l-4.2 4.200a1 1 0 01-1.400 0L4.300 8.700a1 1 0 011.400-1.400l1.100 1.100 3.500-3.500a1 1 0 011.400 1.400z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 100 16A8 8 0 008 0zm3.7 6.3l-4.2 4.200a1 1 0 01-1.400 0L4.300 8.700a1 1 0 011.400-1.400l1.100 1.100 3.500-3.500a1 1 0 011.400 1.400z'/%3E%3C/svg%3E") center/contain no-repeat; }
.kicker { font-weight: 800; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }

/* A slow ribbon of tool names under the hero */
.ribbon { margin: 0 0 8px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ribbon-track { display: flex; gap: 10px; width: max-content; }
.chip { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; background: var(--surface); border: 2px solid var(--edge); border-radius: 999px; padding: 0.55em 1em 0.55em 0.75em; font-weight: 700; font-size: clamp(0.92rem, 0.95vw, 1.15rem); color: var(--ink); }
.chip i { width: 12px; height: 12px; border-radius: 4px; background: var(--c, var(--orange)); }

/* Sections and cards */
.section { padding: clamp(22px, 2vw, 40px) 0; }
.section > h2 { margin-bottom: 6px; }
.section > .sub { color: var(--ink-soft); margin-bottom: 20px; font-size: clamp(1rem, 1.1vw, 1.3rem); }
.grid { display: grid; gap: clamp(14px, 1.4vw, 26px); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--surface); border: 2px solid var(--edge); border-radius: var(--radius); padding: clamp(20px, 1.8vw, 34px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 6px; }
.card p, .card li { color: var(--ink-soft); font-size: clamp(0.97rem, 0.95vw, 1.2rem); }
.card ul { margin: 8px 0 0; padding-left: 1.1em; }
.tile { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 12px; color: #fff; background: var(--c, var(--orange)); box-shadow: 0 8px 16px color-mix(in srgb, var(--c, var(--orange)) 35%, transparent); }
.tile svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* The featured app */
.feature {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; text-decoration: none; color: #fff;
  padding: clamp(26px, 2.6vw, 48px); border-radius: 28px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #FF8A3D, #F4511E 55%, #E63B12);
  box-shadow: 0 22px 46px rgba(244, 81, 30, 0.32);
}
.feature::after { content: ""; position: absolute; right: -70px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.feature > img { width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 12px 26px rgba(120, 30, 0, 0.35); position: relative; z-index: 1; }
.feature h3 { font-size: clamp(1.5rem, 2vw, 2.4rem); margin: 8px 0 4px; }
.feature p { color: rgba(255, 255, 255, 0.92); max-width: 34em; font-size: clamp(1rem, 1.1vw, 1.3rem); }
.feature .go { position: relative; z-index: 1; background: #fff; color: var(--orange); font-weight: 800; padding: 12px 18px; border-radius: 999px; white-space: nowrap; }
.app-card { display: flex; gap: 16px; align-items: center; }
.app-card .placeholder { width: 64px; height: 64px; flex: none; border-radius: 16px; display: grid; place-items: center; border: 2px dashed var(--edge); color: var(--ink-soft); font-size: 1.7rem; font-weight: 700; }
.app-card h3 { margin: 0 0 4px; }

.band { background: var(--orange-soft); border-radius: 28px; padding: clamp(28px, 3vw, 56px); display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(20px, 4vw, 80px); align-items: center; }
.band p { font-size: clamp(1rem, 1.15vw, 1.35rem); margin-top: 10px; }
.band .checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.band .checks li { background: var(--surface); border: 2px solid var(--edge); border-radius: 18px; padding: 14px 18px; font-weight: 700; font-size: clamp(1rem, 1.05vw, 1.25rem); display: flex; gap: 12px; align-items: center; }
.band .checks i { flex: none; width: 12px; height: 12px; border-radius: 4px; background: var(--green); }
.plan .price { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: clamp(1.5rem, 1.8vw, 2.4rem); line-height: 1.1; color: var(--ink); margin: 2px 0 10px; }
.plan.best { border-color: var(--orange); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 12px; height: 12px; border-radius: 4px; background: var(--orange); }
.band h2 { color: var(--orange); }

/* Long-form pages */
.doc { padding: 34px 0 56px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.35rem; margin: 30px 0 8px; scroll-margin-top: 90px; }
.doc p, .doc li { color: var(--ink); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; margin: 8px 0; }
.doc .updated { color: var(--ink-soft); font-size: 0.95rem; }
.doc .card { margin-top: 14px; }

/* Long pages on wide screens: a sticky panel on the left, sections as cards
   flowing in columns on the right — the width is used, lines stay readable. */
.doc.split { display: grid; grid-template-columns: minmax(18rem, 24rem) 1fr; gap: clamp(24px, 3vw, 64px); align-items: start; }
.doc-side { position: sticky; top: clamp(96px, 8vw, 130px); }
.doc-side h1 { font-size: clamp(2rem, 3vw, 3.4rem); }
.doc-side > p { margin-top: 12px; color: var(--ink-soft); }
.doc-side .card { margin-top: 18px; }
.doc-side nav { margin-top: 24px; }
.toc { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 8px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.toc a:hover { background: var(--orange-soft); color: var(--orange); }
.doc-flow { columns: 2 24rem; column-gap: clamp(14px, 1.4vw, 26px); }
.doc-card { break-inside: avoid; margin: 0 0 clamp(14px, 1.4vw, 26px); scroll-margin-top: 120px; }
.doc .doc-card { margin-top: 0; }
.doc-card h2 { margin: 0 0 10px; font-size: clamp(1.35rem, 1.5vw, 1.8rem); }
.doc-card h3 { font-size: clamp(1.05rem, 1.05vw, 1.25rem); }
.doc-card p, .doc-card li { color: var(--ink); font-size: clamp(1rem, 1vw, 1.2rem); }
.doc-card .card { background: transparent; border: 0; box-shadow: none; padding: 0; margin-top: 16px; }
.doc-card .card p { color: var(--ink-soft); }
@media (max-width: 900px) {
  .doc.split { grid-template-columns: 1fr; }
  .doc-side { position: static; }
  .doc-side nav { display: none; }
}

/* Form */
form { display: grid; gap: 14px; margin-top: 14px; }
label { font-weight: 700; font-size: 0.95rem; display: grid; gap: 6px; }
input, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 2px solid var(--edge); border-radius: 14px; padding: 12px 14px; width: 100%; }
input:focus, textarea:focus { border-color: var(--orange); }
textarea { min-height: 140px; resize: vertical; }
.hidden { position: absolute; left: -9999px; }

/* Footer */
.site-footer { border-top: 2px solid var(--edge); margin-top: clamp(20px, 2vw, 36px); padding: 24px 0 36px; color: var(--ink-soft); font-size: clamp(0.93rem, 0.9vw, 1.1rem); display: flex; gap: 14px 24px; flex-wrap: wrap; justify-content: space-between; }
.site-footer a { color: var(--ink-soft); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 36px 0 28px; text-align: center; }
  .hero-copy .eyebrow, .actions, .facts { justify-content: center; }
  .hero p.lead { margin-inline: auto; }
  .stage { min-height: 0; padding: 10px 0 20px; }
  .stage .phone.back { display: none; }
  .stage { --pw: min(250px, 70vw); }
  .stage .phone.front { transform: none; }
  .row { grid-template-columns: 1fr; gap: 22px; padding: 22px 0; }
  .row.flip .row-art { order: 0; }
}
@media (max-width: 760px) {
  .site-header { border-radius: 24px; flex-direction: column; align-items: stretch; padding: 10px 12px; position: relative; top: auto; }
  .nav { justify-content: space-between; flex-wrap: nowrap; gap: 0; }
  .nav a { font-size: clamp(0.8rem, 3.6vw, 0.92rem); padding: 7px clamp(5px, 1.8vw, 9px); }
  .feature { grid-template-columns: 1fr; text-align: left; }
  .band { grid-template-columns: 1fr; }
  .feature .go { justify-self: start; }
  .facts { gap: 12px; display: grid; grid-template-columns: repeat(3, 1fr); }
  .facts span { font-size: 0.8rem; }
}

/* Motion — only for people who haven't asked for less of it */
@media (prefers-reduced-motion: no-preference) {
  .key, .nav a, .card, .feature, .chip { transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.15s ease, border-color 0.15s ease; }
  .key:hover { transform: translateY(-2px); }
  .key:active { transform: scale(0.97); }
  .card.lift:hover, .feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
  .feature:hover .go { transform: translateX(3px); }
  .feature .go { transition: transform 0.18s ease; }

  .hero-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.07s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.14s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.21s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.28s; }
  .stage { animation: rise 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .stage .phone.front { animation: float-a 7s ease-in-out infinite; }
  .stage .phone.back { animation: float-b 8s ease-in-out infinite; }
  .ribbon-track { animation: slide 38s linear infinite; }
  .ribbon:hover .ribbon-track { animation-play-state: paused; }

  /* Revealed as they scroll into view (script adds .in; without script they just show). */
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.in { opacity: 1; transform: none; }

  @keyframes float-a { 0%, 100% { transform: translate(calc(var(--pw) * -0.220), 0) rotate(-4deg); } 50% { transform: translate(calc(var(--pw) * -0.220), -12px) rotate(-3deg); } }
  @keyframes float-b { 0%, 100% { transform: translate(calc(var(--pw) * 0.440), calc(var(--pw) * 0.100)) rotate(7deg) scale(0.9); } 50% { transform: translate(calc(var(--pw) * 0.440), calc(var(--pw) * 0.100 + 12px)) rotate(6deg) scale(0.9); } }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes slide { to { transform: translateX(-50%); } }
}

/* On narrow screens the single phone just bobs. */
@media (prefers-reduced-motion: no-preference) and (max-width: 900px) {
  .stage .phone.front { animation: bob-s 6s ease-in-out infinite; }
  @keyframes bob-s { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
}
