/* Alışkanlıklarım · web sitesi. Yazı tipleri sitenin içinde (Google'a istek gitmez).
   Renkler design/tokens.json ile aynı; adlar da aynı. */
@font-face { font-family: 'Fredoka'; font-weight: 300 700; font-display: swap; src: url(fonts/fredoka.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 200 1000; font-display: swap; src: url(fonts/nunito.woff2) format('woff2'); }

:root {
  color-scheme: light dark;
  --bg: #f4f7f3;
  --surface: #ffffff;
  --surface-sunken: #e8eeea;
  --line: #cbd7cf;
  --line-strong: #7d8f86;
  --ink: #17261f;
  --ink-muted: #526459;
  --brand: #12855a;
  --brand-strong: #0b6644;
  --on-brand: #ffffff;
  --brand-soft: #dcf2e6;
  --star: #f2b200;
  --on-star: #3a2a00;
  --star-soft: #fff0c2;
  --morning: #f08a1c;
  --morning-soft: #ffe9d0;
  --noon: #1497c0;
  --noon-soft: #d5f0f8;
  --evening: #4b55c8;
  --evening-soft: #e1e3fa;
  --periodic: #c9446e;
  --periodic-soft: #fbe0e8;
  --pending: #9a5800;
  --pending-soft: #ffefd6;
  --premium: #6b4a00;
  --focus: #2256d8;
  --hero: #0e6e4a;
  --shadow-card: 0 1px 2px rgba(23, 38, 31, .06), 0 8px 24px -12px rgba(23, 38, 31, .22);
  --shadow-raised: 0 24px 60px -24px rgba(11, 60, 40, .45);
  --display: 'Fredoka', 'Nunito', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-md: 16px; --r-lg: 24px; --r-xl: 32px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1714; --surface: #18231f; --surface-sunken: #0b110f; --line: #33443d; --line-strong: #6e837a;
    --ink: #edf4f0; --ink-muted: #a3b4ac; --brand: #3fcb91; --brand-strong: #74deb0; --on-brand: #052a1b; --brand-soft: #173b2c;
    --star: #ffc93d; --on-star: #2b2000; --star-soft: #3a3012;
    --morning: #ffaa4d; --morning-soft: #3d2a14; --noon: #4cc3e8; --noon-soft: #123543;
    --evening: #8c94f0; --evening-soft: #23264a; --periodic: #f07fa2; --periodic-soft: #42202c;
    --pending: #ffb955; --pending-soft: #3a2a12; --premium: #ffd66b; --focus: #8fb0ff; --hero: #0c3a29;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-raised: 0 24px 60px -24px rgba(0, 0, 0, .8);
  }
  .ic-ink { filter: invert(1) hue-rotate(180deg) brightness(1.1); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--brand-strong); font-weight: 700; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 10px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 15px 26px; font: 800 17px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-brand { color: var(--on-brand); background: var(--brand); box-shadow: 0 12px 24px -12px rgba(18, 133, 90, .9), inset 0 -3px 0 rgba(0, 0, 0, .14); }
.btn-star { color: var(--on-star); background: var(--star); box-shadow: 0 12px 24px -12px rgba(242, 178, 0, .9), inset 0 -3px 0 rgba(0, 0, 0, .1); }
.btn-ghost { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 2px var(--line); }
.btn-small { padding: 11px 18px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn .stack { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.btn .stack small { font-size: 12px; font-weight: 700; opacity: .9; }

/* navigation */
.nav { display: flex; align-items: center; gap: 18px; margin-top: 18px; padding: 10px 10px 10px 16px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-card); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 22px/1 var(--display); margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 15px; }
.nav-links a:hover { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 5px; }

/* hero */
.hero { position: relative; padding-bottom: 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 56px 0 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); font-weight: 800; font-size: 14px; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); margin: 18px 0 18px; }
.hl { position: relative; white-space: nowrap; }
.hl-green { color: var(--brand); }
.hl-star { background: linear-gradient(transparent 62%, var(--star-soft) 62%, var(--star-soft) 92%, transparent 92%); }
.hl-star::after { content: ""; position: absolute; right: -.42em; top: -.12em; width: .42em; height: .42em; background: url(img/icons/yildiz-gold.svg) center/contain no-repeat; }
.hl-evening { color: var(--evening); }
.lead { font-size: 20px; color: var(--ink-muted); max-width: 33em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-weight: 800; font-size: 15px; }
.ticks span { display: inline-flex; align-items: center; gap: 7px; }
.ticks span::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--brand) url(img/icons/tamam-w.svg) center/14px no-repeat; }

/* the phone mockup: the child's Today screen, drawn with the app's own tokens */
.stage { position: relative; min-height: 560px; display: grid; place-items: center; }
.stage .blob { position: absolute; inset: 6% 2% 4% 8%; border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%; background: radial-gradient(circle at 30% 30%, var(--star-soft), transparent 60%), var(--brand-soft); }
.phone { position: relative; width: 300px; border-radius: 46px; padding: 12px; background: #17261f; box-shadow: var(--shadow-raised); transform: rotate(-3deg); }
.screen { border-radius: 36px; background: var(--bg); padding: 18px 14px 16px; min-height: 560px; overflow: hidden; }
.screen .top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.screen .top > img { width: 42px; height: 42px; }
.screen .hi { font: 600 21px/1.1 var(--display); }
.screen .hi small { display: block; font: 700 13px/1.3 var(--body); color: var(--ink-muted); }
.stars { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px 6px 7px; border-radius: 999px; background: var(--star-soft); font: 600 17px/1 var(--display); }
.stars img { width: 20px; height: 20px; }
.slotline { display: flex; align-items: center; gap: 8px; font: 600 15px/1 var(--display); margin: 14px 2px 8px; }
.slotline::after { content: ""; flex: 1; height: 3px; border-radius: 3px; background: currentColor; opacity: .5; }
.rcard { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-card); margin-bottom: 8px; }
.rcard.done { background: var(--brand-soft); box-shadow: none; }
.rcard .t { font: 600 16px/1.15 var(--display); }
.rcard .t small { display: block; font: 700 12px/1.4 var(--body); color: var(--ink-muted); }
.rcard .badge { margin-left: auto; }
.tile { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; }
.tile img { width: 26px; height: 26px; }
.check { width: 28px; height: 28px; border-radius: 50%; background: var(--brand) url(img/icons/tamam-w.svg) center/18px no-repeat; }
.ring { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-strong); }
.pend { margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; background: var(--pending-soft); color: var(--pending); font: 800 11px/1 var(--body); }
.pend img { width: 13px; height: 13px; }
.steps-mini { display: grid; gap: 6px; margin: -2px 0 8px; padding: 10px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-card); }
.steps-mini div { display: flex; align-items: center; gap: 10px; font: 600 15px/1.2 var(--display); padding: 4px; }
.steps-mini .check, .steps-mini .ring { width: 26px; height: 26px; }
.done-btn { margin-top: 4px; text-align: center; padding: 14px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font: 600 19px/1 var(--display); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14); }
.float { position: absolute; width: 74px; filter: drop-shadow(0 10px 14px rgba(23, 38, 31, .18)); animation: bob 5s ease-in-out infinite; }
.float.a { left: 2%; top: 14%; }
.float.b { right: 2%; top: 8%; width: 64px; animation-delay: -1.5s; }
.float.c { right: 0; bottom: 14%; width: 80px; animation-delay: -3s; }
.float.d { left: 6%; bottom: 8%; width: 60px; animation-delay: -2.2s; }
.sparkle { position: absolute; width: 30px; animation: twinkle 3s ease-in-out infinite; }
.sparkle.s1 { left: 18%; top: 4%; }
.sparkle.s2 { right: 16%; bottom: 4%; width: 22px; animation-delay: -1s; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(3deg); } }
@keyframes twinkle { 50% { transform: scale(.7) rotate(20deg); opacity: .6; } }

/* sections */
.block { padding: 72px 0; }
.kicker { display: inline-block; font-weight: 800; font-size: 14px; color: var(--brand-strong); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; }
.title { font-size: clamp(32px, 4.4vw, 50px); margin: 14px 0 12px; }
.sub { color: var(--ink-muted); font-size: 19px; max-width: 40em; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }

/* the four slots, as colorful cards */
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.slot { position: relative; padding: 24px 22px 26px; border-radius: var(--r-xl); overflow: hidden; }
.slot .tile { width: 60px; height: 60px; border-radius: 18px; margin-bottom: 18px; }
.slot .tile img { width: 34px; height: 34px; }
.slot h3 { font-size: 26px; margin-bottom: 6px; }
.slot p { font-size: 16px; color: var(--ink-muted); }
.slot ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.slot li { display: flex; gap: 8px; align-items: center; }
.slot li img { width: 20px; height: 20px; }
.slot.morning { background: var(--morning-soft); } .slot.morning .tile { background: var(--morning); }
.slot.noon { background: var(--noon-soft); } .slot.noon .tile { background: var(--noon); }
.slot.evening { background: var(--evening-soft); } .slot.evening .tile { background: var(--evening); }
.slot.periodic { background: var(--periodic-soft); } .slot.periodic .tile { background: var(--periodic); }

/* how it works */
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; counter-reset: step; }
.how .step { padding: 26px 22px; position: relative; }
.how .num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font: 600 22px/1 var(--display); margin-bottom: 16px; }
.how .step:nth-child(4) .num { background: var(--star); color: var(--on-star); }
.how h3 { font-size: 22px; margin-bottom: 8px; }
.how p { color: var(--ink-muted); font-size: 16px; }
.how .who { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--surface-sunken); }

/* split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feats { display: grid; gap: 14px; margin-top: 26px; }
.feat { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; }
.feat .tile { width: 48px; height: 48px; background: var(--brand-soft); }
.feat h3 { font-size: 19px; margin-bottom: 4px; }
.feat p { font-size: 15.5px; color: var(--ink-muted); }

/* the goal card illustration */
.goalbox { position: relative; padding: 34px; border-radius: 40px; background: var(--star-soft); }
.goal { padding: 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.goal .row { display: flex; align-items: center; gap: 14px; }
.goal .tile { width: 56px; height: 56px; background: var(--star); }
.goal .tile img { width: 32px; height: 32px; }
.goal h3 { font-size: 24px; }
.goal small { color: var(--ink-muted); font-weight: 700; font-size: 14px; }
.bar { margin: 18px 0 10px; height: 18px; border-radius: 999px; background: var(--surface-sunken); overflow: hidden; }
.bar i { display: block; height: 100%; width: 72%; border-radius: inherit; background: var(--star); }
.goal .meta { display: flex; justify-content: space-between; font: 600 17px/1 var(--display); }
.approve { margin-top: 18px; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-card); }
.approve img.av { width: 44px; height: 44px; }
.approve b { display: block; font: 600 17px/1.2 var(--display); }
.approve small { color: var(--ink-muted); font-weight: 700; font-size: 13px; }
.approve .ok { margin-left: auto; padding: 10px 14px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: 14px; }
.pin { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.pin span { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); }
.pin span:last-child { background: transparent; box-shadow: inset 0 0 0 2px var(--line-strong); }

/* widget */
.widget-demo { padding: 34px; border-radius: 40px; background: linear-gradient(150deg, var(--noon-soft), var(--evening-soft)); }
.wdg { padding: 18px; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow-raised); }
.wdg .head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.wdg .head img { width: 34px; height: 34px; }
.wdg .head b { font: 600 18px/1 var(--display); }
.wdg .head .stars { padding: 4px 9px 4px 6px; font-size: 15px; }
.wdg .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wdg .grid div { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 16px; background: var(--surface-sunken); font: 600 15px/1.15 var(--display); }
.wdg .grid div.on { background: var(--brand-soft); }
.wdg .grid .check, .wdg .grid .ring { width: 24px; height: 24px; flex: none; }
.wdg .done-btn { margin-top: 10px; padding: 12px; font-size: 17px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 28px 26px; border-radius: var(--r-xl); position: relative; }
.plan h3 { font-size: 26px; }
.plan .price { font: 600 44px/1 var(--display); margin: 16px 0 4px; }
.plan .price small { font: 700 16px/1 var(--body); color: var(--ink-muted); }
.plan .per { color: var(--ink-muted); font-weight: 700; font-size: 15px; min-height: 24px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-weight: 700; font-size: 16px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ""; flex: none; margin-top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand) url(img/icons/tamam-w.svg) center/15px no-repeat; }
.plan li.no::before { background: var(--surface-sunken); }
.plan li.no { color: var(--ink-muted); }
.plan.best { background: var(--hero); color: #fff; box-shadow: var(--shadow-raised); }
.plan.best .price small, .plan.best .per { color: rgba(255, 255, 255, .82); }
.plan.best li::before { background-color: var(--star); background-image: url(img/icons/tamam.svg); }
.ribbon { position: absolute; top: -14px; right: 22px; padding: 7px 14px; border-radius: 999px; background: var(--star); color: var(--on-star); font-weight: 800; font-size: 14px; }
.fine { margin-top: 20px; font-size: 14px; color: var(--ink-muted); text-align: center; max-width: 54em; margin-inline: auto; }

/* parents' trust strip */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.trust .card { padding: 24px; }
.trust .tile { width: 52px; height: 52px; margin-bottom: 14px; background: var(--brand-soft); }
.trust h3 { font-size: 21px; margin-bottom: 6px; }
.trust p { color: var(--ink-muted); font-size: 16px; }

/* faq */
.faq { max-width: 820px; margin: 32px auto 0; display: grid; gap: 12px; }
.faq details { padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 30px 16px 0; font: 600 19px/1.3 var(--display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 28px; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--ink-muted); }

/* closing banner, like a trial banner (there's no trial: the free plan is the try-out) */
.banner { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 44px; border-radius: 40px; background: var(--hero); color: #fff; }
.banner h2 { font-size: clamp(28px, 3.6vw, 42px); }
.banner p { margin-top: 10px; color: rgba(255, 255, 255, .85); font-size: 18px; max-width: 30em; }
.banner .avs { display: flex; margin-top: 18px; }
.banner .avs img { width: 46px; height: 46px; margin-right: -10px; border-radius: 50%; box-shadow: 0 0 0 3px var(--hero); }
.banner .mark { position: absolute; right: -40px; bottom: -60px; width: 240px; opacity: .1; transform: rotate(-12deg); pointer-events: none; }

/* footer */
footer { margin-top: 64px; padding: 44px 0 28px; border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 28px; }
.foot p { color: var(--ink-muted); font-size: 15px; margin-top: 12px; max-width: 28em; }
.foot h4 { font: 800 14px/1 var(--body); color: var(--ink-muted); margin-bottom: 12px; }
.foot a:not(.brand) { display: block; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.foot a:not(.brand):hover { color: var(--brand-strong); text-decoration: underline; }
.copy { margin-top: 28px; font-size: 13px; color: var(--ink-muted); font-weight: 700; }

/* legal pages */
.doc-top { padding-bottom: 28px; }
.doc-top h1 { font-size: clamp(36px, 5vw, 54px); margin: 40px 0 8px; }
.doc-top p { color: var(--ink-muted); font-weight: 700; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.toc a { padding: 7px 13px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--ink); font-size: 14px; }
.doc { width: min(860px, 100% - 32px); margin: 0 auto; padding: 36px 40px 44px; }
.doc h2 { font-size: 27px; margin: 34px 0 10px; scroll-margin-top: 20px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--ink); }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 22px; margin: 10px 0; }
.doc li { margin-bottom: 6px; }
.doc .box { margin: 14px 0; padding: 16px 18px; border-radius: var(--r-md); background: var(--brand-soft); }
.doc table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px; border-top: 1px solid var(--line); }
.doc th { width: 30%; font-weight: 800; }

/* responsive */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .stage { min-height: 520px; }
  .slots, .how { grid-template-columns: 1fr 1fr; }
  .plans, .trust { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .split .art { order: 2; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero-grid { padding-top: 36px; }
  .lead { font-size: 18px; }
  .slots, .how { grid-template-columns: 1fr; }
  .block { padding: 52px 0; }
  .phone { width: 270px; }
  .screen { min-height: 500px; }
  .float { width: 56px; } .float.c { width: 60px; }
    .banner { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .foot { grid-template-columns: 1fr; }
  .doc { padding: 26px 20px 32px; }
  .doc th { width: auto; display: block; border-top: 1px solid var(--line); padding-bottom: 2px; }
  .doc td { display: block; border-top: 0; padding-top: 2px; }
  .doc tr { display: block; }
  .btn-small { padding: 10px 14px; font-size: 14px; }
  .goalbox, .widget-demo { padding: 20px; }
}

/* language switch */
.lang { display: inline-grid; place-items: center; min-width: 44px; height: 40px; padding: 0 12px; border-radius: 999px; background: var(--surface-sunken); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 14px; }
.lang:hover { background: var(--brand-soft); color: var(--brand-strong); }
