/* milot.app — shared styles. Milot's colours: teal, cream, rust. */
@font-face { font-family: 'Instrument Serif'; src: url('InstrumentSerif-Regular.ttf') format('truetype'); font-display: swap; }

:root {
  --teal: #0F4744; --teal-dark: #0A3633; --cream: #F6F2EA; --rust: #E0895C; --rust-soft: #F6E1D3;
  --sage: #D9E5DF; --ink: #1A1815; --muted: #6C6862; --hair: #E5DFD2; --white: #FFFFFF;
  --serif: 'Instrument Serif', Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; }
body { background: var(--cream); color: var(--ink); font: 17px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; }
a { color: var(--teal); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.home .wrap { max-width: 1080px; }

header.site { padding: 20px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal); font-family: var(--serif); font-size: 30px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
nav a { margin-left: 18px; color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--teal); }
.home header.site { background: var(--teal); }
.home .brand { color: var(--cream); }
.home nav a { color: rgba(246, 242, 234, 0.75); }
.home nav a:hover { color: var(--cream); }

.eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rust); font-weight: 600; margin: 0 0 10px; }
.store { display: inline-block; }
.store img { display: block; height: 56px; width: auto; } /* Apple's badge, unaltered */

/* Hero: teal, like the app's welcome screen */
.hero { position: relative; background: var(--teal); color: var(--cream); overflow: hidden; padding: 30px 0 0; }
.hero .trail { position: absolute; top: 10px; right: -40px; width: 620px; max-width: 70vw; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: end; }
.hero-copy { padding-bottom: 80px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: 80px; line-height: 0.98; letter-spacing: -1px; margin: 0 0 22px; }
.hero h1 em { color: var(--rust); font-style: normal; }
.hero .lede { color: rgba(246, 242, 234, 0.82); font-size: 19px; max-width: 520px; margin: 0 0 28px; }
.hero .small { color: rgba(246, 242, 234, 0.6); font-size: 14px; margin: 14px 0 0; }
.hero-phone { display: flex; justify-content: center; }
.hero-phone .phone { width: 330px; margin-bottom: -150px; } /* runs off the bottom of the hero */

.phone { background: var(--ink); border-radius: 46px; padding: 10px; box-shadow: 0 30px 60px rgba(10, 54, 51, 0.28); }
.phone img { display: block; width: 100%; height: auto; border-radius: 37px; }

.trust { background: var(--white); border-bottom: 1px solid var(--hair); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 10px 34px; padding-top: 22px; padding-bottom: 22px; }
.trust span { font-weight: 600; color: var(--teal); font-size: 15px; }
.trust span::before { content: '✓'; color: var(--rust); margin-right: 8px; }

/* Feature rows: copy beside a real screen, alternating sides */
.row { padding: 90px 0 0; }
.row-grid { display: grid; grid-template-columns: 1fr 300px; gap: 60px; align-items: center; }
.row.flip .row-grid { grid-template-columns: 300px 1fr; }
.row.flip .row-copy { order: 2; }
.row h2, .steps h2, .newbie h2 { font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1.02; color: var(--teal); margin: 0 0 14px; }
.row-copy p:not(.eyebrow) { color: var(--muted); font-size: 18px; max-width: 460px; margin: 0; }
.small-phone { width: 300px; }

.steps { padding: 110px 0 20px; }
.steps ol { list-style: none; counter-reset: step; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--hair); border-radius: 20px; padding: 24px; color: var(--muted); font-size: 16px; }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--rust); margin-bottom: 12px; }
.steps li b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }

.newbie { padding: 60px 0 90px; }
.newbie-box { display: flex; align-items: center; gap: 36px; background: var(--rust-soft); border-radius: 28px; padding: 36px 40px; max-width: 1040px; }
.newbie-box > img { width: 170px; height: 170px; flex: none; }
.newbie-box p { color: var(--muted); font-size: 18px; margin: 0 0 20px; max-width: 520px; }

/* Privacy policy and support */
.doc { padding: 10px 0 56px; }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: 52px; color: var(--teal); margin: 10px 0 4px; line-height: 1.05; }
.doc .updated { color: var(--muted); margin-top: 0; }
.doc h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--teal); margin: 36px 0 8px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--hair); }
.doc th { color: var(--muted); font-weight: 600; }
.doc .box { background: var(--white); border: 1px solid var(--hair); border-radius: 16px; padding: 16px 20px; }
.qa h3 { font-size: 18px; margin: 26px 0 4px; }
.qa p { margin: 0; }

footer.site { border-top: 1px solid var(--hair); padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
footer.site a { color: var(--muted); margin-right: 16px; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero-copy { padding-bottom: 30px; }
  .hero h1 { font-size: 60px; }
  .hero-phone .phone { width: 260px; margin-bottom: -110px; }
  .row-grid, .row.flip .row-grid { grid-template-columns: 1fr; gap: 30px; }
  .row.flip .row-copy { order: 0; }
  .small-phone { width: 260px; margin: 0 auto; }
  .row { padding-top: 70px; }
  .steps ol { grid-template-columns: 1fr; }
  .newbie-box { flex-direction: column; text-align: center; padding: 30px 24px; }
  .newbie-box p { margin-left: auto; margin-right: auto; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 50px; }
  .hero .lede { font-size: 17px; }
  .row h2, .steps h2, .newbie h2 { font-size: 40px; }
  .doc h1 { font-size: 40px; }
  nav a { margin-left: 12px; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc td { border: none; padding: 2px 0; }
  .doc tr { border-bottom: 1px solid var(--hair); padding: 10px 0; }
}

/* A close-up of one part of a screen, in place of a phone */
.shot { width: 100%; max-width: 440px; justify-self: center; }
.shot img { display: block; width: 100%; height: auto; border-radius: 28px; box-shadow: 0 24px 50px rgba(10, 54, 51, 0.18); }
.row-grid:has(.shot) { grid-template-columns: 1fr 440px; }
.row.flip .row-grid:has(.shot) { grid-template-columns: 440px 1fr; }
@media (max-width: 880px) { .row-grid:has(.shot), .row.flip .row-grid:has(.shot) { grid-template-columns: 1fr; } }
