/* merafi.gr — same identity as the app: cool paper, olive, Commissioner. One bold element: the day's receipt. */
:root {
  --paper: #f6f7f4; --card: #ffffff; --ink: #17211f; --stone: #66706b; --line: #dfe4dc;
  --olive: #46663a; --olive-deep: #344d2b; --olive-soft: #e7eedf; --warn: #8a5a00;
  --receipt: #fffefa; --receipt-ink: #232a26;
  --wrap: 1120px; --gutter: clamp(16px, 4vw, 40px);
  font-family: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.55; color: var(--ink); color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #111614; --card: #19201d; --ink: #e9ede8; --stone: #9aa49e; --line: #29322e;
    --olive: #8fb978; --olive-deep: #a9cc95; --olive-soft: #1f2a20; --warn: #f0b860;
    --receipt: #f4f2ea; --receipt-ink: #232a26; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive); }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 10; }

/* Header */
.top { max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.top-nav { display: flex; align-items: center; gap: 22px; }
.top-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.top-nav a:hover { color: var(--olive); }
.top-nav .login { border: 1.5px solid var(--olive); color: var(--olive); padding: 7px 16px; border-radius: 999px; }
@media (max-width: 760px) { .top-nav a:not(.login) { display: none; } }

/* Buttons */
.btn { display: inline-block; background: var(--olive); color: var(--paper); text-decoration: none; font-weight: 600; border: 0; cursor: pointer;
  padding: 14px 22px; border-radius: 12px; font-size: 1rem; font-family: inherit; }
.btn:hover { background: var(--olive-deep); }
.btn-quiet { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }

/* Hero */
.hero { max-width: var(--wrap); margin: 0 auto; padding: clamp(24px, 6vw, 72px) var(--gutter) clamp(40px, 7vw, 96px);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 22px; max-width: 13ch; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink); max-width: 36em; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.note { color: var(--stone); font-size: .92rem; margin: 20px 0 0; max-width: 36em; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero h1 { max-width: 15ch; } }

/* The receipt: printed once out of a slot. */
.receipt-wrap { margin: 0; position: relative; justify-self: center; width: min(100%, 360px); }
.slot { height: 14px; border-radius: 8px; background: var(--ink); opacity: .9; margin: 0 -10px; position: relative; z-index: 2; }
.receipt { background: var(--receipt); color: var(--receipt-ink); margin: -7px 6px 0; padding: 26px 22px 30px; position: relative; z-index: 1;
  box-shadow: 0 18px 40px -22px rgba(23, 33, 31, .45); font-variant-numeric: tabular-nums;
  --tooth: 10px; -webkit-mask: radial-gradient(circle at 50% 100%, transparent 5px, #000 5.5px) bottom / var(--tooth) 11px repeat-x, linear-gradient(#000, #000) top / 100% calc(100% - 10px) no-repeat;
          mask: radial-gradient(circle at 50% 100%, transparent 5px, #000 5.5px) bottom / var(--tooth) 11px repeat-x, linear-gradient(#000, #000) top / 100% calc(100% - 10px) no-repeat;
  animation: print 1.6s cubic-bezier(.2, .7, .2, 1) .25s both; transform-origin: top; }
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-14px); } to { clip-path: inset(0 0 0 0); transform: none; } }
.r-title { font-weight: 700; font-size: 1.05rem; margin: 0; text-align: center; }
.r-date { margin: 2px 0 16px; text-align: center; font-size: .88rem; color: #5c645f; }
.receipt dl { margin: 0; padding: 12px 0; border-top: 1.5px dashed #b9beb7; }
.receipt dl div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: .92rem; }
.receipt dt { margin: 0; } .receipt dd { margin: 0; text-align: right; white-space: nowrap; }
.r-sub { color: #5c645f; font-size: .85rem !important; padding-left: 12px !important; }
.r-strong { font-weight: 700; font-size: 1rem !important; padding-top: 8px !important; }
.r-day dd { white-space: normal; }
.r-warn dd { color: #8a5a00; }
.r-foot { margin: 14px 0 0; padding-top: 12px; border-top: 1.5px dashed #b9beb7; text-align: center; font-weight: 600; color: #2f6b2a; }
.receipt-wrap figcaption { text-align: center; color: var(--stone); font-size: .8rem; margin-top: 12px; }

/* Sections */
section { scroll-margin-top: 16px; }
.day, .also, .trust, .faq { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 12px; }
.section-lead { color: var(--stone); font-size: 1.08rem; margin: 0 0 40px; max-width: 40em; }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; margin: 4px 0 10px; line-height: 1.2; }

/* A day: a real sequence by time of day, alternating sides. */
.moments { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(40px, 7vw, 88px); }
.moment { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(24px, 5vw, 72px); align-items: center; }
.moment:nth-child(even) { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
.moment:nth-child(even) .moment-text { order: 2; }
.moment-text { max-width: 34em; }
.moment-text p { margin: 0; }
.when { color: var(--olive); font-weight: 600; font-size: 1rem; }
.phone { border: 9px solid var(--ink); border-radius: 30px; overflow: hidden; background: var(--card); max-height: 560px; box-shadow: 0 24px 50px -30px rgba(23, 33, 31, .5); }
.phone img { width: 100%; }
@media (max-width: 760px) {
  .moment, .moment:nth-child(even) { grid-template-columns: 1fr; }
  .moment:nth-child(even) .moment-text { order: 0; }
  .phone { max-width: 320px; max-height: 480px; }
}

.also { border-top: 1px solid var(--line); }
.also-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 40px; }
.also-list li { padding-left: 18px; border-left: 3px solid var(--olive-soft); }
.also-list b { color: var(--ink); }

.trust { border-top: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; margin-top: 20px; }
.trust-grid p { margin: 0; max-width: 34em; }
@media (max-width: 640px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-grid b { display: block; margin-bottom: 4px; }

/* Invitation: the one coloured band. */
.invite { background: var(--olive); color: var(--paper); }
.invite { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px);
  padding: clamp(48px, 7vw, 88px) max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); }
.invite h2 { color: var(--paper); }
.invite a { color: var(--paper); }
.invite .note { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.perks { padding-left: 20px; margin: 18px 0; }
.perks li { margin: 6px 0; }
@media (max-width: 860px) { .invite { grid-template-columns: 1fr; } }
@media (prefers-color-scheme: dark) { .invite { color: #111614; } .invite h2, .invite a { color: #111614; } .invite .note { color: #1f2a20; } }

.lead { margin: 0; }
form.lead { background: var(--card); color: var(--ink); border-radius: 18px; padding: clamp(18px, 3vw, 28px); display: grid; gap: 14px; align-self: start; }
form.lead a { color: var(--olive); }
form.lead label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.opt { color: var(--stone); font-weight: 400; }
form.lead input, form.lead select, form.lead textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; }
form.lead input:focus, form.lead select:focus, form.lead textarea:focus { border-color: var(--olive); outline: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
form.lead .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .88rem; color: var(--stone); }
form.lead .consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--olive); }
.hp { position: absolute; left: -9999px; }
form.lead .btn { justify-self: start; }
.form-msg { margin: 0; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: #2f6b2a; } .form-msg.err { color: #a8322a; }

.faq details { border-top: 1px solid var(--line); padding: 16px 0; max-width: 46em; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--olive); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--ink); max-width: 40em; }

.foot { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gutter) 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; color: var(--stone); font-size: .9rem; }
.foot .brand { font-size: 1rem; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--stone); }
.foot p { margin: 0; }

/* Privacy page */
.doc { max-width: 760px; margin: 0 auto; padding: 24px var(--gutter) 64px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.02em; margin: 12px 0 8px; }
.doc h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.doc .draft { background: var(--olive-soft); border-radius: 12px; padding: 12px 16px; }
