/* MakeGreetings — colours taken from the app icon: rose background, pink frosting, amber flame.
   Light and dark themes: the system choice by default, or the one picked with the header button
   (html[data-theme="light"|"dark"]). */
:root {
  --rose: #ff4d6a;
  --rose-deep: #e8364f;
  --rose-ink: #c4233c;
  --flame: #ffb02e;

  --bg: #fff5f7;
  --paper: #ffffff;
  --ink: #33161e;
  --ink-body: #4a2a33;
  --ink-soft: #7a5560;
  --line: #f3d3db;
  --frost-1: #fbdbe3;
  --chip: #fbdbe3;
  --glass: rgba(255, 255, 255, .82);
  --glass-ink: #33161e;
  --link: #c4233c;
  --hero: radial-gradient(1200px 500px at 85% -10%, rgba(255, 176, 46, .35), transparent 60%),
          linear-gradient(160deg, #ff6a80 0%, #ff4d6a 45%, #e8364f 100%);
  --shadow: 0 24px 60px -24px rgba(196, 35, 60, .45);
  --shadow-soft: 0 12px 32px -16px rgba(120, 30, 50, .25);

  --radius-lg: 32px;
  --radius: 22px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #170b0f;
    --paper: #231218;
    --ink: #fbe9ee;
    --ink-body: #e6cdd4;
    --ink-soft: #bd97a2;
    --line: #3a2129;
    --frost-1: #4a2530;
    --chip: #3d1d26;
    --glass: rgba(30, 14, 20, .72);
    --glass-ink: #fbe9ee;
    --link: #ff8fa2;
    --hero: radial-gradient(1200px 500px at 85% -10%, rgba(255, 176, 46, .22), transparent 60%),
            linear-gradient(160deg, #d9445c 0%, #b8283f 50%, #8a1a2e 100%);
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
    --shadow-soft: 0 12px 32px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #170b0f;
  --paper: #231218;
  --ink: #fbe9ee;
  --ink-body: #e6cdd4;
  --ink-soft: #bd97a2;
  --line: #3a2129;
  --frost-1: #4a2530;
  --chip: #3d1d26;
  --glass: rgba(30, 14, 20, .72);
  --glass-ink: #fbe9ee;
  --link: #ff8fa2;
  --hero: radial-gradient(1200px 500px at 85% -10%, rgba(255, 176, 46, .22), transparent 60%),
          linear-gradient(160deg, #d9445c 0%, #b8283f 50%, #8a1a2e 100%);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --shadow-soft: 0 12px 32px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; overflow-wrap: break-word; }
p { margin: 0; }

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

/* ---------- Language offer ---------- */
.lang-banner {
  position: relative; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px;
  padding: 10px 48px 10px 16px; text-align: center; font-size: 15px; font-weight: 600;
  background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line);
}
.lang-banner a { font-weight: 800; }
.lang-banner button {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--ink-soft); font: inherit; font-size: 22px; line-height: 1;
}
.lang-banner button:hover { background: var(--chip); color: var(--ink); }
body:has(.lang-banner) .site-header { position: relative; margin-bottom: -76px; }

/* ---------- Header ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 10; padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-size: 19px; }
.brand img { width: 36px; height: 36px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.15)); }
.nav { display: flex; gap: 22px; font-weight: 600; font-size: 15px; margin-left: auto; }
.nav a { color: inherit; text-decoration: none; opacity: .9; }
.nav a:hover { opacity: 1; text-decoration: underline; }
.controls { display: flex; align-items: center; gap: 8px; margin-left: 12px; }

.on-rose { color: #fff; }
.on-rose a, .on-rose a:hover { color: #fff; }

.lang-picker, .theme-btn {
  height: 38px; border-radius: 12px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  color: #fff; transition: background .15s ease;
}
.lang-picker:hover, .theme-btn:hover { background: rgba(255,255,255,.26); }
.lang-picker { position: relative; display: inline-flex; align-items: center; padding: 0 10px; gap: 6px; cursor: pointer; }
.lang-picker svg, .theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lang-picker select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit;
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; padding: 0 16px 0 0; max-width: 150px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 5px center, right 0 center; background-size: 5px 5px; background-repeat: no-repeat;
}
.lang-picker select:focus { outline: none; }
.lang-picker:focus-within, .theme-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lang-picker option { color: #33161e; background: #fff; }
.theme-btn { width: 38px; display: grid; place-items: center; padding: 0; cursor: pointer; }
.theme-btn svg { display: none; }
.theme-btn .fill { fill: currentColor; stroke: none; }
:root:not([data-theme]) .theme-btn .i-auto,
:root[data-theme="light"] .theme-btn .i-light,
:root[data-theme="dark"] .theme-btn .i-dark { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--hero); padding: 120px 0 150px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; letter-spacing: .02em;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 10px var(--flame); }
.hero h1 { font-size: clamp(38px, 6vw, 66px); font-weight: 800; }
.hero h1 em { font-style: normal; color: #ffe3ea; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); margin-top: 20px; max-width: 520px; opacity: .95; }

/* Phones */
.phones { position: relative; height: 560px; }
.phone {
  position: absolute; top: 50%; left: 50%;
  width: 236px; aspect-ratio: 9 / 19.5;
  background: #1b0b10; border-radius: 42px; padding: 9px;
  box-shadow: 0 40px 80px -30px rgba(60, 0, 15, .7), inset 0 0 0 2px rgba(255,255,255,.08);
}
.phone .screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; position: relative; background: #000; }
.phone .screen video { width: 100%; height: 100%; object-fit: cover; }
.phone .screen::before {
  content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 76px; height: 22px; border-radius: 12px; background: #000; z-index: 2;
}
.phone.center { transform: translate(-50%, -50%); z-index: 3; }
.phone.left { transform: translate(-112%, -46%) rotate(-8deg) scale(.86); z-index: 2; }
.phone.right { transform: translate(12%, -46%) rotate(8deg) scale(.86); z-index: 2; }

/* Frosting edge — the wavy drip from the icon */
.frosting { position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; pointer-events: none; }
.frosting svg { width: 100%; height: 100%; display: block; }
.frosting .frost-1 { fill: var(--frost-1); }
.frosting .frost-2 { fill: var(--bg); }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 52px; }
.section-head .kicker { color: var(--link); font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-top: 10px; }
.section-head p { color: var(--ink-soft); font-size: 18px; margin-top: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--paper); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-soft); border: 1px solid var(--line); }
.step .num {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 800; font-size: 20px; color: #fff;
  background: linear-gradient(160deg, #ff7d92, var(--rose-deep)); margin-bottom: 18px;
}
.step h3 { font-size: 21px; font-weight: 800; }
.step p { color: var(--ink-soft); margin-top: 8px; }

.templates { background: var(--paper); border-radius: 48px 48px 0 0; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 9 / 16; box-shadow: var(--shadow-soft); }
.card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .label {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; border-radius: 14px; color: var(--glass-ink);
  background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 14px; font-weight: 700; line-height: 1.25;
}
.tag { font-size: 11px; font-weight: 800; color: #fff; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.tag.birthday { background: linear-gradient(135deg, #ff2d55, #ff9f0a); }
.tag.new-year { background: linear-gradient(135deg, #0a84ff, #64d2ff); }
.tag.love { background: linear-gradient(135deg, #ff375f, #bf5af2); }
.tag.morning-night { background: linear-gradient(135deg, #ff9f0a, #5e5ce6); }
.tag.pranks { background: linear-gradient(135deg, #ff9f0a, #e0b000); }
.grid-note { text-align: center; color: var(--ink-soft); margin-top: 30px; font-size: 15px; }

.occasions { background: var(--paper); padding-top: 0; }
.occ { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.occ-item { border-radius: var(--radius); padding: 22px 20px; color: #fff; min-height: 150px; }
.occ-item h3 { font-size: 19px; font-weight: 800; }
.occ-item p { font-size: 14px; opacity: .92; margin-top: 6px; }
.occ-item.birthday { background: linear-gradient(150deg, #ff2d55, #ff9f0a); }
.occ-item.new-year { background: linear-gradient(150deg, #0a84ff, #64d2ff); }
.occ-item.love { background: linear-gradient(150deg, #ff375f, #bf5af2); }
.occ-item.morning-night { background: linear-gradient(150deg, #ff9f0a, #5e5ce6); }
.occ-item.pranks { background: linear-gradient(150deg, #ffb340, #f0a500); color: #3a2400; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 880px; margin: 0 auto; }
.feature { padding: 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.feature .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--chip); display: grid; place-items: center; margin-bottom: 16px; }
.feature .ico svg { width: 24px; height: 24px; stroke: var(--link); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 19px; font-weight: 800; }
.feature p { color: var(--ink-soft); margin-top: 6px; font-size: 16px; }

.band-section { padding-top: 0; }
.band {
  background: var(--hero); color: #fff; border-radius: var(--radius-lg); padding: 48px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  box-shadow: var(--shadow);
}
.band img { width: 88px; height: 88px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.2)); }
.band h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.band p { margin-top: 6px; opacity: .92; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 800; text-align: center;
  padding: 14px 24px; border-radius: 16px; white-space: nowrap;
  background: #fff; color: var(--rose-ink); transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }

.site-footer { padding: 48px 0 56px; color: var(--ink-soft); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--link); text-decoration: underline; }
.site-footer .brand { font-size: 16px; }
.site-footer .brand img { width: 28px; height: 28px; }

/* ---------- Subpages (support, privacy, terms) ---------- */
.page-hero { position: relative; color: #fff; text-align: center; background: var(--hero); padding: 120px 0 110px; }
.page-hero img.icon { width: 84px; height: 84px; margin: 0 auto 18px; filter: drop-shadow(0 12px 24px rgba(0,0,0,.2)); }
.page-hero h1 { font-size: clamp(30px, 5vw, 50px); font-weight: 800; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.page-hero p { margin-top: 10px; opacity: .92; font-size: 18px; }
.page-hero .frosting { height: 64px; }

.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 40px; }
.doc .meta { color: var(--ink-soft); font-size: 15px; margin-bottom: 28px; }
.doc .meta + .meta { margin-top: -20px; }
.doc > h2 { font-size: 26px; font-weight: 800; margin: 48px 0 8px; }
.doc p, .doc li { font-size: 17px; color: var(--ink-body); }
.doc strong { color: var(--ink); }
.doc h3 { font-size: 19px; font-weight: 800; margin: 28px 0 8px; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 12px 0; }
.doc li + li { margin-top: 6px; }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0 8px; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ul { margin: 0; }

.contact-card {
  display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-soft);
}
.contact-card h2 { font-size: 22px; font-weight: 800; }
.contact-card p { margin-top: 6px; color: var(--ink-soft); font-size: 16px; }
.contact-card .btn { background: linear-gradient(160deg, #ff6a80, var(--rose-deep)); color: #fff; }
.contact-card .mail { grid-column: 1 / -1; font-weight: 700; font-size: 15px; }

.qa { padding: 20px 0; border-bottom: 1px solid var(--line); }
.qa:last-child { border-bottom: 0; }
.qa h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .controls { margin-left: auto; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .phones { height: 500px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .occ { grid-template-columns: repeat(3, 1fr); }
  .band { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 40px 28px; }
}
@media (max-width: 640px) {
  .brand { font-size: 17px; }
  .brand img { width: 32px; height: 32px; }
  .lang-picker select { max-width: 92px; text-overflow: ellipsis; }
  .hero { padding: 100px 0 120px; }
  .phones { height: 420px; }
  .phone { width: 190px; border-radius: 34px; padding: 7px; }
  .phone .screen { border-radius: 28px; }
  .phone.left { transform: translate(-100%, -46%) rotate(-8deg) scale(.82); }
  .phone.right { transform: translate(0%, -46%) rotate(8deg) scale(.82); }
  section { padding: 72px 0; }
  .steps, .features { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card .label { font-size: 12px; padding: 7px 9px; left: 7px; right: 7px; bottom: 7px; }
  .card .tag { display: none; }
  .occ { grid-template-columns: repeat(2, 1fr); }
  .occ-item { min-height: 120px; }
  .templates { border-radius: 32px 32px 0 0; }
  .contact-card { grid-template-columns: 1fr; padding: 24px; }
  .site-footer .wrap { flex-direction: column; text-align: center; }
  .site-footer nav { justify-content: center; }
}
@media (max-width: 340px) {
  .site-header .brand { font-size: 0; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .lang-picker, .theme-btn { transition: none; }
}
