/* ifeel — landing / support / privacy
   Palette mirrors apple/ifeel/Theme/AppColors.swift
   deep green night + luminous jade-mint, aurora smoke drifting like incense. */

:root {
  --bg:            #08110E;
  --surface:       #14201C;
  --surface-2:     #1C2A24;
  --text:          #EAF2EC;
  --text-2:        #A9BDB2;
  --text-faint:    #76877D;
  --outline:       #274039;
  --outline-faint: #1C2C26;
  --accent:        #74E0AE;
  --on-accent:     #05140C;
  --aurora-teal:   #2BA88C;
  --aurora-mint:   #7FE6B0;
  --aurora-violet: #39C9A8;
  --pale-yellow:   #EDEA9E;
  --maxw: 720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
               "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ---- aurora night background ---- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 108%, rgba(237,234,158,0.10), transparent 55%),
    linear-gradient(180deg, #060D0B 0%, #08110E 40%, #0A1712 100%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  will-change: transform;
}
.blob.b1 { width: 46vmax; height: 46vmax; left: 55%;  top: -8%;  background: var(--aurora-violet); animation: drift1 19s ease-in-out infinite; }
.blob.b2 { width: 42vmax; height: 42vmax; left: 5%;   top: 24%;  background: var(--aurora-teal);   animation: drift2 23s ease-in-out infinite; }
.blob.b3 { width: 38vmax; height: 38vmax; left: 42%;  top: 52%;  background: var(--aurora-mint);   opacity: 0.22; animation: drift3 17s ease-in-out infinite; }
.blob.b4 { width: 60vmax; height: 60vmax; left: 20%;  top: 82%;  background: var(--pale-yellow);   opacity: 0.14; animation: drift2 27s ease-in-out infinite; }

@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(0.9); } 50% { transform: translate(-6vmax,5vmax) scale(1.15); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1.05); } 50% { transform: translate(7vmax,-4vmax) scale(0.85); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(0.8); } 50% { transform: translate(-5vmax,-6vmax) scale(1.2); } }

.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* faint static stars, upper 70% */
  background-image:
    radial-gradient(1px 1px at 12% 14%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 27% 8%,  rgba(255,255,255,0.22), transparent),
    radial-gradient(1.2px 1.2px at 44% 20%, rgba(255,255,255,0.30), transparent),
    radial-gradient(1px 1px at 63% 11%, rgba(255,255,255,0.18), transparent),
    radial-gradient(1.3px 1.3px at 78% 22%, rgba(255,255,255,0.28), transparent),
    radial-gradient(1px 1px at 88% 9%,  rgba(255,255,255,0.20), transparent),
    radial-gradient(1px 1px at 33% 33%, rgba(255,255,255,0.16), transparent),
    radial-gradient(1px 1px at 70% 38%, rgba(255,255,255,0.14), transparent);
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none !important; }
}

/* ---- layout ---- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

header.site {
  padding: 26px 0 0;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-size: 20px;
  letter-spacing: 0.14em;
  color: var(--text);
  text-decoration: none;
  font-weight: 400;
}
.brand .dot { color: var(--accent); }
nav.site a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  margin-left: 22px;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}
nav.site a:hover { color: var(--accent); }

/* ---- hero ---- */
.hero {
  text-align: center;
  padding: 20vh 0 12vh;
}
.hero .eyebrow {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.34em;
  margin: 0 0 30px;
  text-transform: none;
  opacity: 0.85;
}
.hero h1 {
  font-weight: 300;
  font-size: clamp(30px, 6.6vw, 46px);
  line-height: 1.7;
  letter-spacing: 0.06em;
  margin: 0 0 26px;
  color: var(--text);
}
.hero p.lead {
  color: var(--text-2);
  font-size: clamp(15px, 2.6vw, 17px);
  max-width: 34em;
  margin: 0 auto;
}

/* real app icon in the hero (iOS squircle + soft jade glow) */
.appicon {
  display: block;
  width: 112px; height: 112px;
  margin: 0 auto 40px;
  border-radius: 25px;
  border: 1px solid rgba(116,224,174,0.18);
  box-shadow: 0 0 46px 6px rgba(116,224,174,0.30),
              0 18px 44px -12px rgba(0,0,0,0.6);
}

/* soft moon glow behind the mark */
.glowmark {
  width: 66px; height: 66px;
  margin: 0 auto 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--aurora-mint), var(--aurora-teal) 70%);
  box-shadow: 0 0 42px 8px rgba(116,224,174,0.45), 0 0 120px 20px rgba(116,224,174,0.18);
  position: relative;
}
.glowmark::after {
  content: "i";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--on-accent);
  font-size: 30px; font-weight: 500;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
}

/* ---- store badge (coming soon) ---- */
.store {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
}
.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px;
  border: 1px solid var(--outline);
  border-radius: 14px;
  background: rgba(20,32,28,0.5);
  color: var(--text-2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 15px;
  letter-spacing: 0.04em;
  cursor: default;
}
.badge-soon .apple { font-size: 20px; line-height: 1; }
.badge-soon .pill {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  border: 1px solid var(--outline);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---- sections ---- */
section.block {
  padding: 8vh 0;
}
section.block h2 {
  font-weight: 300;
  font-size: clamp(20px, 4vw, 26px);
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  color: var(--text);
}
section.block h2 + .sub {
  color: var(--text-faint);
  font-size: 13px;
  letter-spacing: 0.2em;
  margin: 0 0 40px;
}

.features {
  display: grid;
  gap: 18px;
}
@media (min-width: 620px) {
  .features { grid-template-columns: 1fr 1fr; }
}
.card {
  border: 1px solid var(--outline-faint);
  background: linear-gradient(180deg, rgba(28,42,36,0.5), rgba(20,32,28,0.35));
  border-radius: 18px;
  padding: 26px 24px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.card h3 {
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.05em;
  margin: 0 0 10px;
  color: var(--text);
}
.card h3 .k {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 6px;
  opacity: 0.8;
}
.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.9;
}

/* quiet privacy note strip */
.note {
  border: 1px solid var(--outline-faint);
  border-radius: 18px;
  padding: 28px 26px;
  background: rgba(20,32,28,0.35);
  color: var(--text-2);
  font-size: 14px;
}
.note strong { color: var(--text); font-weight: 400; }

/* ---- article (privacy / support) ---- */
.article {
  padding: 12vh 0 6vh;
}
.article h1 {
  font-weight: 300;
  font-size: clamp(26px, 5vw, 34px);
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}
.article .updated {
  color: var(--text-faint);
  font-size: 13px;
  letter-spacing: 0.08em;
  margin: 0 0 44px;
}
.article h2 {
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin: 44px 0 12px;
}
.article p, .article li {
  color: var(--text-2);
  font-size: 15px;
  line-height: 2.0;
}
.article ul { padding-left: 1.2em; }
.article li { margin-bottom: 8px; }
.article a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(116,224,174,0.3); }
.article a:hover { border-bottom-color: var(--accent); }
.article .contact {
  margin-top: 44px;
  padding: 24px 26px;
  border: 1px solid var(--outline-faint);
  border-radius: 16px;
  background: rgba(20,32,28,0.4);
}
.article .contact .mail {
  font-size: 18px;
  color: var(--text);
  letter-spacing: 0.04em;
}

/* ---- footer ---- */
footer.site {
  padding: 8vh 0 8vh;
  border-top: 1px solid var(--outline-faint);
  margin-top: 6vh;
}
footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  justify-content: space-between;
}
footer.site .links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.05em;
  margin-right: 22px;
}
footer.site .links a:hover { color: var(--accent); }
footer.site .copy {
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.back {
  display: inline-block;
  margin-top: 8px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.05em;
}
.back:hover { color: var(--accent); }
