/* samani.ge: the app's own look (DESIGN.md): warm ground, ink text, chunky sun buttons, 2 px lines. */
@font-face { font-family: "Samani"; font-weight: 500; font-display: swap; src: url(fonts/NotoSansGeorgian-Medium.ttf) format("truetype"); }
@font-face { font-family: "Samani"; font-weight: 700; font-display: swap; src: url(fonts/NotoSansGeorgian-Bold.ttf) format("truetype"); }
@font-face { font-family: "Samani"; font-weight: 800; font-display: swap; src: url(fonts/NotoSansGeorgian-ExtraBold.ttf) format("truetype"); }

:root {
  color-scheme: light;
  --ground: #FFFDF7;
  --surface: #FFFFFF;
  --ink: #23264D;
  --ink-edge: #0F1130;
  --muted: #6B6F94;
  --line: #E4E3F0;
  --line-soft: #EFEDF7;
  --sun: #FFD34D;
  --sun-edge: #E0A000;
  --sun-deep: #FFC533;
  --sun-tint: #FFF3CC;
  --sun-text: #6B4E00;
  --blue: #1787F0;
  --blue-text: #0A5CB8;
  --blue-tint: #E6F4FF;
  --green-text: #0E7A49;
  --green-tint: #DDF8EA;
  --story-text: #5B3FD6;
  --story-tint: #EFE9FF;
  --font: "Samani", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; 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(--ground); color: var(--ink); font: 500 18px/1.6 var(--font); }
img { max-width: 100%; display: block; }
a { color: var(--blue-text); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-weight: 800; line-height: 1.15; margin: 0; letter-spacing: -.01em; overflow-wrap: break-word; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 23px; }
.brand-tile { width: 38px; height: 38px; border-radius: 12px; background: var(--sun); box-shadow: 0 3px 0 var(--sun-edge); display: grid; place-items: center; font-size: 20px; }
.top nav { display: flex; gap: 6px; }
.top nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.top nav a:hover { background: var(--line-soft); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 24px; border-radius: 18px; border: 0;
  font: 800 17px/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .1s ease-out, box-shadow .1s ease-out; }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 5px 0 var(--sun-edge); }
.btn-sun:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--sun-edge); }
.btn-ink { background: var(--ink); color: #FFFFFF; box-shadow: 0 5px 0 var(--ink-edge); }
.btn-ink[aria-disabled="true"] { cursor: default; }
.btn small { display: block; font-weight: 700; font-size: 12px; opacity: .75; margin-bottom: 3px; }
.btn .stack { display: flex; flex-direction: column; text-align: left; line-height: 1.1; }

.pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; font-weight: 800; font-size: 14px; }

/* hero */
.hero { display: grid; gap: 40px; align-items: center; padding-top: 24px; padding-bottom: 72px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr .9fr; gap: 48px; padding-top: 48px; padding-bottom: 96px; } }
.hero h1 { font-size: clamp(34px, 4.7vw, 58px); line-height: 1.12; margin: 18px 0 20px; text-wrap: balance; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero .lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: 32px; }

/* phone */
.stage { position: relative; display: grid; place-items: center; padding: 24px 0 8px; isolation: isolate; }
.stage::before { /* sun rays, the app icon's motif */
  content: ""; position: absolute; z-index: -1; width: min(560px, 120%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--sun-tint) 0 34%, transparent 70%),
              repeating-conic-gradient(from 6deg, #FFE89A 0 9deg, transparent 9deg 22.5deg);
  -webkit-mask: radial-gradient(circle, #000 40%, transparent 70%); mask: radial-gradient(circle, #000 40%, transparent 70%);
}
.phone { position: relative; width: min(300px, 76vw); padding: 10px; border-radius: 52px; background: var(--ink-edge);
  box-shadow: inset 0 0 0 2px #3B4070, 0 30px 60px -20px rgba(15, 17, 48, .45); }
.phone img { width: 100%; height: auto; border-radius: 42px; aspect-ratio: 390 / 844; background: var(--ground); }
.phone::after { content: ""; position: absolute; top: 19px; left: 50%; width: 30%; height: 26px; transform: translateX(-50%); border-radius: 999px; background: #000; }
.samo { position: absolute; width: 132px; height: auto; right: max(0px, calc(50% - 230px)); bottom: -6px; }
.samo .arm { transform-origin: 102px 72px; animation: wave 2.8s ease-in-out infinite; }
.samo .eyes { transform-origin: 60px 53px; animation: blink 4.2s ease-in-out infinite; }
@keyframes wave { 0%, 55%, 100% { transform: rotate(0); } 65% { transform: rotate(-18deg); } 75% { transform: rotate(12deg); } 85% { transform: rotate(-14deg); } 93% { transform: rotate(6deg); } }
@keyframes blink { 0%, 91%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }

/* sections */
section.block { padding: 72px 0; }
@media (min-width: 900px) { section.block { padding: 96px 0; } }
.block h2 { font-size: clamp(28px, 4.2vw, 44px); margin-bottom: 14px; }
.block .intro { color: var(--muted); font-size: 19px; max-width: 36em; }
.tint-sun { background: var(--sun-tint); }

/* the name: three letters */
.name-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .name-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { background: var(--surface); border: 2px solid var(--line); border-radius: 24px; box-shadow: 0 6px 0 var(--line); padding: 18px 8px 14px; text-align: center; }
.tile b { display: block; font-size: clamp(56px, 10vw, 92px); line-height: 1.05; }
.tile span { display: block; margin-top: 8px; font-weight: 700; font-size: 14px; color: var(--muted); }
.tile.on { background: var(--blue-tint); border-color: var(--blue); box-shadow: 0 6px 0 var(--blue); color: var(--blue-text); }

/* write your name */
.namer { display: grid; gap: 16px; margin-top: 32px; max-width: 760px; }
.namer label { font-weight: 800; }
.namer input { width: 100%; min-height: 60px; padding: 0 20px; border: 2px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink);
  font: 800 22px/1 var(--font); box-shadow: 0 5px 0 var(--line-soft); }
.namer input:focus { outline: none; border-color: var(--blue); box-shadow: 0 5px 0 var(--blue); }
.stone { position: relative; background: #F3F0E8; border-radius: 28px 28px 22px 22px; padding: 28px 24px 24px; box-shadow: inset 0 -8px 0 #E2DCCB, 0 10px 24px -14px rgba(35, 38, 77, .4); }
.stone .row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.stone .row + .row { margin-top: 10px; padding-top: 10px; border-top: 2px dashed #DDD6C3; }
.stone output { font-weight: 800; font-size: clamp(34px, 7vw, 56px); line-height: 1.15; letter-spacing: .02em; overflow-wrap: anywhere; min-height: 1.15em; }
.stone .label { font-weight: 700; font-size: 14px; color: var(--muted); }

/* how it works */
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 300px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 16px 24px; margin: 32px -16px 0; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .steps { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 48px 0 0; padding: 0; } }
.step { scroll-snap-align: start; display: flex; flex-direction: column; gap: 16px; }
.step figure { margin: 0; border-radius: 30px; padding: 18px 18px 0; overflow: hidden; height: 400px; }
.step figure img { border-radius: 22px 22px 0 0; box-shadow: 0 0 0 2px rgba(35, 38, 77, .08), 0 18px 30px -18px rgba(35, 38, 77, .5); }
.step:nth-child(1) figure { background: var(--sun-tint); }
.step:nth-child(2) figure { background: var(--green-tint); }
.step:nth-child(3) figure { background: var(--story-tint); }
.step h3 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.step h3 .n { width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 16px; }
.step p { color: var(--muted); }

/* the course path */
.path { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: part; }
@media (min-width: 900px) { .path { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.path li { background: var(--surface); border: 2px solid var(--line); border-radius: 24px; padding: 20px; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center; }
@media (min-width: 900px) { .path li { grid-template-columns: 1fr; align-content: start; } }
.path .glyph { grid-row: span 2; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-weight: 800; font-size: 34px; background: var(--sun); box-shadow: 0 4px 0 var(--sun-edge); }
@media (min-width: 900px) { .path .glyph { grid-row: auto; margin-bottom: 10px; } }
.path li:nth-child(2) .glyph { background: var(--blue-tint); box-shadow: 0 4px 0 #C5E3FF; color: var(--blue-text); }
.path li:nth-child(3) .glyph { background: var(--story-tint); box-shadow: 0 4px 0 #D9CCFF; color: var(--story-text); }
.path li:nth-child(4) .glyph { background: var(--green-tint); box-shadow: 0 4px 0 #B5EBCF; color: var(--green-text); }
.path h3 { font-size: 20px; }
.path h3::before { counter-increment: part; content: counter(part) ". "; color: var(--muted); }
.path p { color: var(--muted); font-size: 16px; line-height: 1.5; }

/* free */
.free { background: var(--ink); color: #FFFFFF; border-radius: 36px; padding: 40px 24px; display: grid; gap: 28px; }
@media (min-width: 900px) { .free { grid-template-columns: 1fr 1fr; padding: 56px; align-items: center; } }
.free h2 { color: #FFFFFF; }
.free p { color: #C9CBE6; }
.free a { color: var(--sun); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; background: #33376A; font-weight: 700; font-size: 16px; }
.chips li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%2323264D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }

/* english */
.en { border-top: 2px solid var(--line-soft); }
.en p { max-width: 40em; color: var(--muted); }
.en p + p { margin-top: 10px; }

/* footer */
.foot { padding-top: 40px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 15px; border-top: 2px solid var(--line-soft); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot nav a { color: var(--ink); font-weight: 700; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }

/* text pages: privacy, support, 404 */
.doc { max-width: 720px; padding-top: 24px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(25px, 6vw, 44px); margin: 12px 0 8px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc p, .doc li { margin: 0 0 12px; }
.doc .updated { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.doc .short { background: var(--sun-tint); color: var(--sun-text); border-radius: 20px; padding: 16px 20px; font-weight: 700; }
.doc hr { border: 0; border-top: 2px solid var(--line); margin: 56px 0; }
.lang { display: flex; gap: 8px; }
.lang a { padding: 8px 14px; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.mail { display: inline-flex; align-items: center; gap: 10px; margin: 4px 0 8px; padding: 14px 20px; border-radius: 18px; background: var(--blue-tint); color: var(--blue-text); font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
details { background: var(--surface); border: 2px solid var(--line); border-radius: 20px; padding: 0 20px; margin-bottom: 12px; }
details[open] { padding-bottom: 8px; }
summary { cursor: pointer; font-weight: 800; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); }
details[open] summary::after { content: "–"; }
